Layer 220
BotsGetBotCommands
Obtain a list of bot commands for the specified bot scope and language code
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
VectorPossible 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