Node-telegram-bot-api: Buttons size in keyboard?

Created on 27 Sep 2016  路  6Comments  路  Source: yagop/node-telegram-bot-api

I have noticed that buttons are very big among usually.
There is a way to set height of buttons? Thanks!

question

Most helpful comment

You can play with resize_keyboard option

All 6 comments

You can play with resize_keyboard option

@dotcypress' answer hits the spot! Thanks!

If you are using laravel library the add below code :
Add ['resize_keyboard' => true]聽in make() function.

$keyboard = Keyboard::make(['resize_keyboard' => true])
->row( Keyboard::button(['text' => "\xE2\x9C\x8F Register"]),
Keyboard::button(['text' => "\xE2\x98\x91 Verify Account"])
);

Can i put custom size to keyboard? like 1/2 of half screen

Can i put custom size to keyboard? like 1/2 of half screen

Hi! Have you done this task? I need an answer for the question of the height of the buttons. Thank you for the answer.

Can i put custom size to keyboard? like 1/2 of half screen

No, Telegram fits it optimally on the screen, you don't have finer access to tuning the size.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Dohoon-Kim picture Dohoon-Kim  路  3Comments

hems picture hems  路  3Comments

kenanchristian picture kenanchristian  路  4Comments

mbrammer picture mbrammer  路  3Comments

alikhil picture alikhil  路  3Comments