src/TwitterDriver.php
private function convertQuestion(Question $question)
    {
        $buttons = Collection::make($question->getButtons())->map(function ($button) {
            return [
                'label' => $button['text'],
                'metadata' => $button['value']
            ];
        });

        return [
            'text' => $question->getText(),
            'quick_reply' => [
                'type'=>'options',
                'options' => $buttons->toArray(),
            ],
        ];
    }
private function convertQuestion(Question $question)
    {
        $buttons = Collection::make($question->getButtons())->map(function ($button) {
            return [
                'label' => $button['text'],
                'metadata' => $button['value']
            ];
        });

        return [
            'text' => $question->getText(),
            'quick_reply' => [
                'type'=>'options',
                'options' => $buttons->toArray(),
            ],
        ];
    }
Convert a Question object into a valid Twitter message object.

@param \BotMan\BotMan\Messages\Outgoing\Question $question
@return array