setMyCommands
Set or update your Telegram bot's command list, defining up to 100 commands with descriptions and optional scopes.
Instructions
Change the list of bot commands. Returns True on success. At most 100 commands can be specified.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scope | No | Scope of users for which the commands are relevant. Defaults to BotCommandScopeDefault. | |
| commands | Yes | A list of bot commands to set. Each command object must have 'command' (1-32 chars) and 'description' (1-256 chars). | |
| language_code | No | Two-letter ISO 639-1 language code. If empty, commands apply to all users from the given scope. |