Telegram bot API custom keyboard - how to make a list of vertical buttons?

I have a php code

$keyboard = [
                'inline_keyboard' => [['text' =>  $name, 'callback_data' => $placeId]],
            ];
                $markup = json_encode($keyboard, true);
                $content = [
                    'chat_id' => $chatId,
                    'reply_markup' => $markup,
                    'text' => 'Here is your places list. Choose one to get map with it.',
                    'disable_notification' => true
                ];

And from this code I have a list of some buttons of the built-in menu, but these buttons listed in string, horizontal and text names are cut out as "Text text ...".

How can I make vertical buttons of the built-in menu, for example, using Telegram documents as an example? Here is a link and an example image

image with example

+4
source share
1 answer
-'inline_keyboard' => [['text' =>  $name, 'callback_data' => $placeId]],
+'inline_keyboard' => [[['text' =>  $name1, 'callback_data' => $placeId1]], [['text' =>  $name2, 'callback_data' => $placeId2]]],
+6
source

All Articles