Synchronize Chat History to Local Archive
sync_chat_cachePulls new Telegram messages into the local offline cache so you can search chat history without calling the Telegram API. Use before running offline text searches or building message archives.
Instructions
Synchronize remote Telegram chat messages into the local SQLite/FTS5 offline cache database. Use before performing offline text searches or when populating local message archives. To search already synced messages without Telegram API calls, use search_cached_messages. To verify database integrity and index status, use check_cache_health.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Synchronization mode: 'incremental' (new messages since checkpoint) or 'full' (all messages in batch). | incremental |
| limit | No | Maximum number of items or records to retrieve (integer between 1 and 100). | |
| account | No | Optional account label for multi-account environments. If omitted in single-mode, the default account is used. In multi-mode without an account, read-only tools fan out across all configured accounts. | |
| chat_id | Yes | Target Telegram chat, group, supergroup, channel, or user identifier. Accepts numeric chat ID (e.g. -1001234567890 or 123456789), username (e.g. '@channel'), or phone number. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||