Set bot command list
boolFalse#bc799737 = Bool;
boolTrue#997275b5 = Bool;
---functions---
bots.setBotCommands#517165a scope:BotCommandScope lang_code:string commands:Vector<BotCommand> = Bool;
Name | Type | Description |
---|---|---|
scope | BotCommandScope | Command scope |
lang_code | string | Language code |
commands | Vector<BotCommand> | Bot commands |
Code | Type | Description |
---|---|---|
400 | BOT_COMMAND_DESCRIPTION_INVALID | The specified command description is invalid. |
400 | BOT_COMMAND_INVALID | The specified command is invalid. |
400 | LANG_CODE_INVALID | The specified language code is invalid. |