How to resize inline keyboard

(Madi Kulesov) #1

How to resize inline keyboard for Telegram in Make a custom requsest action?

(Karen Barker) #2

Hi @Madi_Kulesov

Unfortunately at the moment Telegram hasn’t given an option to be able to resize the inline keyboard. All you can do is change the number of buttons on each line of the keyboard and then Telegram automatically shares the space evenly between each button.

(Madi Kulesov) #3

can you show example pls?

(Karen Barker) #4

Hi @Madi_Kulesov

There’s a flow here that you can install which should show you how to handle this.

For more information on this option in the Telegram API please see here. Please be aware that we don’t support the callback buttons with the inline keyboard therefore you won’t be able to trigger a flow using this sort of button. You’ll be able to use the URL options or the switch-inline-query.

An alternative to the inline keyboard is the ReplyKeyboardMarkup and example of how to use this is here. With this option there would be no issue triggering other flows from the user clicking a button.

(Madi Kulesov) #5

thank u so much !!!