getMyCommands
Retrieves the bot's current command list for a specified scope and user language, returning BotCommand objects or an empty list when none are configured.
Instructions
Use this method to get the current list of the bot's commands for the given scope and user language. Returns an Array of BotCommand objects. If commands aren't set, an empty list is returned.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "getMyCommands"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scope | No | An object, describing scope of users. Defaults to BotCommandScopeDefault. | |
| language_code | No | A two-letter ISO 639-1 language code or an empty string |