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.

 Method schema is available as of layer 140. Switch »

Parameters

Name Type Description
user_id InputUser User ID or empty for the default menu button.

Result

BotMenuButton

Possible errors

Code Type Description
400 USER_BOT_REQUIRED This method can only be called by a bot.

Bots can use this method

Related pages

bots.setBotMenuButton

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

botInfo

Info about bots (available bot commands, etc)