tg_wait_for_message
Block until the Telegram bot sends new messages and return them, so test scripts can wait for and verify bot replies.
Instructions
Block until the bot sends something new (the core test primitive). Returns the new incoming messages.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "tg_wait_for_message"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| after_id | No | ||
| timeout_s | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |