Bot: wait for reply
bot_wait_for_replyBlocks until a user sends a message or presses a button, then returns new messages marked as read. Use after sending a message; if nobody replies, it times out and you can call again.
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 and no messages if nobody answered; call again to keep waiting.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chat_id | Yes | Numeric chat id (see bot_list_chats). | |
| timeout_seconds | No | How long to wait; use less if your client cancels long calls. | |
| after_message_id | No | Only messages newer than this id: pass the message_id you sent; a button press on it counts. |