bot_api
Call any Telegram Bot API method directly using a bot token and optional parameters.
Instructions
Call any Telegram Bot API method as a bot, e.g. method='setMyCommands' or 'sendMessage'.
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": {
"token": "<token>",
"method": "<method>"
},
"name": "bot_api"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| token | Yes | ||
| method | Yes | ||
| params | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||