R
R
Ruda9112017-05-30 19:41:11
Python
Ruda911, 2017-05-30 19:41:11

How to edit buttons in Telegram?

How to make all buttons the same?cfa008f9d679486093dc58602d901a54.PNG

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ilya, 2017-05-30
@Ruda911

Buttons are passed in an array of arrays.
PHP code for an example (you can adapt for Python without problems):

$button1 = array('text' => 'Сайт', 'url' => 'https://......ru'); // одна кнопка в первом ряду
$button2 = array('text' => 'VK', 'url' => 'https://......ru'); // первая кнопка во втором ряду
$button3 = array('text' => 'FB', 'url' => 'https://......ru'); // вторая кнопка во втором ряду
$keyboard = array('inline_keyboard' => array(array($button1), array($button2, $button3)), 'one_time_keyboard' => true, 'resize_keyboard' => true);

Just pass in an array of the desired format and experiment with resize_keyboard.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question