search_messages
Search Telegram messages by keyword in a specific chat, channel, or group. Provide the chat identifier and search term to retrieve matching messages with sender, date, and text.
Instructions
Search messages by keyword inside a specific Telegram chat/channel/group.
Args: entity: Chat username (e.g. @some_channel), chat ID, or title fragment. query: Keyword or phrase to search for. limit: Max results to return (default 30, max 100).
Returns: List of matching messages with id, date, sender, text, has_document.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| query | Yes | ||
| entity | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |