Bot: wait for reply
bot_wait_for_replyWaits for a chat reply or button press, then returns new read messages; use after sending a message and check timed_out=true when nobody responds.
Instructions
Wait until someone writes in a chat or presses a button, then return the new messages (marked read).
Use after bot_send_message. Returns timed_out=true if nobody answered.
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": {
"chat_id": "<chat_id>"
},
"name": "bot_wait_for_reply"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chat_id | Yes | Numeric chat id. | |
| timeout_seconds | No | Seconds to wait. | |
| after_message_id | No | Only messages newer than this id (the message_id you sent). |