Search Telegram messages
telegram_search_messagesFull-text search over archived message text and captions. The last word is prefix-matched. Optionally restrict to one chat or to a time window. Messages include is_forwarded and forward_origin (original author/channel and Unix date when available). For forwards, from identifies who forwarded it in this chat, not the original author. Missing origin data does not prove authorship; never infer a hidden author's identity.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | How many matches to return. Default 30. | |
| query | Yes | Words to search for. | |
| since | No | Only messages at or after this time. Accepts an ISO 8601 timestamp, unix seconds, 'today', 'yesterday', or a relative window like '24h' / '7d'. | |
| chat_id | No | Restrict the search to this chat. |