sync_history
Manually sync Telegram chat history to a local SQLite cache. Supports recent or backfill sync directions to retrieve messages above or below the cached ID.
Instructions
Sync Telegram history into local SQLite cache. Use this manually; normally run sync-daemon in the background.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chat | No | Chat ID, @username, or omitted for TELEGRAM_DEFAULT_CHAT_ID. | |
| mode | No | Sync direction. recent fetches messages above newest cached ID; backfill fetches older messages. | |
| limit | No | Messages to fetch. Max TELEGRAM_MAX_SYNC_LIMIT. | |
| offset_id | No | Start older-than this message ID. 0 means latest. | |
| batch_size | No | Telegram page size. |