bots.getBotMenuButton #

Gets the menu button action for a given user or for all users, previously set using bots.setBotMenuButton; users can see this information in the botInfo constructor.

Layer 223

botMenuButtonDefault#7533a588 = BotMenuButton;
botMenuButtonCommands#4258c205 = BotMenuButton;
botMenuButton#c7b57ce6 text:string url:string = BotMenuButton;
---functions---
bots.getBotMenuButton#9c60eb28 user_id:InputUser = BotMenuButton;

Parameters #

NameTypeDescription
user_idInputUserUser ID or empty for the default menu button.

Result #

BotMenuButton

Only bots can use this method #

Possible errors #

CodeTypeDescription
400USER_BOT_REQUIREDThis method can only be called by a bot.

bots.setBotMenuButton #

Sets the menu button action » for a given user or for all users

botInfo #

Info about bots (available bot commands, etc)