Layer 220
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

BotMenuButton

Possible 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