Layer 220
method Bots
bots.getBotCommands#e34c0dd6 scope:BotCommandScope lang_code:string = Vector<BotCommand>;

Parameters

Name Type Description
Scope BotCommandScope Command scope
LangCode string Language code

Returns

Vector

Possible Errors

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

Gogram Example

// BotsGetBotCommands - positional arguments
result, err := client.BotsGetBotCommands(&tg.BotCommandScope{}, "...")
if err != nil {
    // handle error
}
// result is *tg.Vector