Answer Callback
answer_callbackRespond to inline button clicks by updating the message text or showing a notification popup to the user.
Instructions
Respond to an inline button click (callback event from get_updates). You can update the original message text and/or show a notification popup to the user. Must be called within 30 seconds of the button press.
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": {
"callback_id": "<callback_id>",
"user_id": "<user_id>"
},
"name": "answer_callback"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| callback_id | Yes | The callback_id from the message_callback event (get_updates) | |
| user_id | Yes | The user_id of the user who clicked the button | |
| notification | No | Short notification text shown as a popup to the user (optional) | |
| message_text | No | New text for the original message (optional, updates the message in-place) | |
| message_format | No | Formatting for message_text |