Layer 220
BotsGetBotMenuButton
Gets the menu button action for a given user or for all users, previously set using bots. set Bot Menu Button; users can see this information in the bot Info constructor.
method
Bots
bots.getBotMenuButton#9c60eb28 user_id:InputUser = BotMenuButton;
Parameters
| Name | Type | Description |
|---|---|---|
| UserId | InputUser | User ID or empty for the default menu button. |
Returns
BotMenuButtonPossible Errors
| Code | Type | Description |
|---|---|---|
| 400 | USER_BOT_REQUIRED | This method can only be called by a bot. |
Gogram Example
// BotsGetBotMenuButton - positional arguments result, err := client.BotsGetBotMenuButton(&tg.InputUserSelf{}) if err != nil { // handle error } // result is *tg.BotMenuButton