answer_inline_query
Send results to answer an inline query from a Telegram user, with options for caching, personalization, pagination, and a button.
Instructions
Answer an inline query with results.
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": {
"inline_query_id": "<inline_query_id>",
"results": "<results>"
},
"name": "answer_inline_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| button | No | JSON object with InlineQueryResultsButton (button shown above results) | |
| results | Yes | JSON array of InlineQueryResult objects | |
| cache_time | No | Cache time in seconds (default: 300) | |
| is_personal | No | Results should be personalized | |
| next_offset | No | Offset for next page of results | |
| inline_query_id | Yes | ID of the inline query to answer |