set_my_commands
Define a list of bot commands with descriptions for a specific scope (e.g., all chats, group, user) or language, controlling command availability in different contexts.
Instructions
Set the bot's commands for the given scope.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"commands": "<commands>"
},
"name": "set_my_commands"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scope | No | JSON object with BotCommandScope | |
| commands | Yes | JSON array of BotCommand objects [{command, description}] | |
| language_code | No | Language code (e.g., 'en', 'ru') |