search_messages
Search Telegram chats by query with full-text or substring modes, filtering by chat, sender, and date range.
Instructions
Full-text search across all chats (or one chat). mode=fts uses stemmed Russian/English search with websearch syntax ("a b" phrase, -word exclusion, OR); mode=substring is a plain case-insensitive substring match.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | fts | |
| limit | No | ||
| query | Yes | ||
| chat_id | No | ||
| to_date | No | ||
| from_date | No | ||
| sender_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |