Bot: wait for reply
bot_wait_for_replyPause the bot and wait for a user's chat message or button press, returning new replies. Use after sending a question to hold a conversation or get approval.
Instructions
Wait until someone writes in a chat or presses a button, then return the new messages (marked read).
Use after bot_send_message to hold a conversation or ask the user for approval. Returns timed_out=true and no messages if nobody answered in time; call again to keep waiting.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chat_id | Yes | Numeric chat id (from bot_get_new_messages or bot_list_chats). | |
| timeout_seconds | No | How long to wait. Use a shorter wait if your MCP client cancels long tool calls. | |
| after_message_id | No | Only messages newer than this one. Pass the message_id of the question you sent; a button press on it counts. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||