telegram_watch
Wait for the next Telegram message in permitted chats: blocks until a message arrives, groups replies within debounce_sec, and returns the burst once the chat stays quiet.
Instructions
Blocks until a message arrives in a permitted chat, then returns the whole burst in one answer: replies that land within debounce_sec of each other wake the caller once, not once each. Use when the user wants to wait for the next message instead of asking again. Do not use this to look at what already arrived; call telegram_inbox or telegram_chat_read. The call holds the account until it returns. Always returns within timeout_sec (at most 300s); an empty result at the ceiling is an answer, not an error, and says how long it waited. Messages from chats the policy refuses are not reported at all — not even as the fact that something happened. Reading never marks anything as seen. Note that the account's session is held for the duration of the wait, so nothing else can use it meanwhile.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chats | No | Chat ids, @usernames or t.me links to watch. Omit to watch every chat the policy already permits reading. A value may also be a comma-separated list, which is what the terminal form used to require. | |
| limit | No | Most messages to collect before returning even if the chat is still busy. | |
| account | No | Account label to use. Omit when exactly one account is configured. | |
| timeout_sec | No | Longest this call may block. Returning with no events at the end of it is a result, not an error. | |
| debounce_sec | No | How long the chat must stay quiet before the burst is handed back. Each new message restarts the window; 0 returns the first message alone. |