Bot API method or type definition
get_bot_api_definitionRetrieve a Telegram Bot API method or type definition as structured data to inspect parameters, fields, required values, limits, and changelog entries without reading the full API page.
Instructions
Return the current definition of one Bot API method or type as structured data.
Use it instead of reading the whole Bot API page when you need a method's parameters or a type's fields: each entry has its type, whether it is required, the description and any allowed values or length limits stated by Telegram, plus the changelog entries that mention it. For behaviour explained in prose elsewhere (formatting, payments, limits pages) use search_telegram_docs and get_telegram_document. Returns kind (method or type), name, url, description, then params (methods; with returns) or fields (types; or one_of for union types), plus changes, bot_api_version, source, checked_at and freshness. An unknown name returns kind: null with close-match suggestions. Built from the cached official page, refreshed when stale.
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": {
"name": "<name>"
},
"name": "get_bot_api_definition"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Exact Bot API method or type name, e.g. 'sendMessage', 'InlineKeyboardButton', 'ReplyParameters'. Case-insensitive; close matches are suggested. |