Search Local Offline SQLite Message Archive
search_cached_messagesSearch locally cached Telegram messages without live API calls for rate-limit-free retrieval; sync chats first with sync_chat_cache.
Instructions
Search the local FTS5 SQLite archive for messages without making live Telegram API requests. Use for instantaneous, rate-limit-free search over synchronized messages. To sync messages into cache first, use sync_chat_cache.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of items or records to retrieve (integer between 1 and 100). | |
| query | Yes | Search text string or keywords to match against messages, contacts, or entities. | |
| offset | No | Pagination offset indicating the number of initial records to skip. | |
| 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 |
|---|---|---|---|
| result | Yes |