telegram-get-updates
Fetch new messages, deleted messages, and other updates since a known {pts, qts, date} cursor. Returns updates and a new cursor state; call again if more updates are queued.
Instructions
Fetch new messages, deleted messages, and other updates since a previously-known {pts, qts, date} cursor (from telegram-get-state or a prior call). Returns compact newMessages[], deletedMessageIds[], otherUpdates[] (className only), and the new cursor state. isFinal=false means more updates are queued — call again with the returned state. If Telegram reports the gap is too long, a fallback hint is returned suggesting to resync via telegram-read-messages per chat. Cursor is stateless — the agent must persist {pts, qts, date} between calls.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pts | Yes | Last known pts (from telegram-get-state or prior telegram-get-updates) | |
| qts | Yes | Last known qts (secret-chat / encrypted stream cursor; 0 if unknown) | |
| date | Yes | Last known date (unix seconds from prior state) | |
| ptsLimit | No | Max updates per batch (default 100, capped at 1000) | |
| ptsTotalLimit | No | Max total updates across paginated slices (default 1000, capped at 1000) |