Check a Bot API call
check_bot_api_callValidate Telegram Bot API method calls against the official schema before running or shipping code; get errors and warnings for parameters, types, values, and retired fields.
Instructions
Check a Bot API request against the current official schema before running or shipping code.
Reports errors (unknown method or parameter with suggestions, missing required parameters, wrong types, values outside the documented list, a wrong type in union objects such as InputMedia) and warnings (lengths outside documented limits, parameters retired in an older Bot API version with the changelog entry that replaced them, numbers or booleans sent as strings). It does not call Telegram and cannot check permissions, chat state or file contents. Returns valid (true when there are no errors), errors and warnings as lists of {path, message} where path points into params (for example reply_markup.inline_keyboard[0][0].style), plus url, bot_api_version and freshness. An unknown method returns valid: false with suggestions. Use get_bot_api_definition to read the definitions it checks against.
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": {
"method": "<method>",
"params": "<params>"
},
"name": "check_bot_api_call"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| method | Yes | Bot API method name, e.g. 'sendMessage'. | |
| params | Yes | The request parameters exactly as your code sends them, as a JSON object. Nested objects such as reply_markup may be objects or JSON strings. |