D
D
Dmitry Krymtsev2017-05-09 20:36:43
PHP
Dmitry Krymtsev, 2017-05-09 20:36:43

How to implement such * buttons in a telegram bot?

Good time of the day,
please tell me how to implement such buttons in your bot?
Now we have implemented it this way , and it's not quite the same. They take up half the screen anyway. At least there will be 2. It doesn't matter if it's horizontal or vertical.

$buttonDefault = array(
          'keyboard' => array(
            array("Контакты", "Оплата"),
            array("Состояние сети", "Новости"),
            array("Баланс", "О боте")
            )
          );

Thank you!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexey S., 2017-05-09
@krimtsev

resize_keyboard
bool
Optional. Requests clients to resize the keyboard vertically for optimal fit (eg, make the keyboard smaller if there are just two rows of buttons). Defaults to false, in which case the custom keyboard is always of the same height as the app's standard keyboard.

S
Sergey Sokolov, 2017-05-09
@sergiks

Question about icons? This is emoji.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question