Search messages
search_messagesFind messages by text within one allowlisted Telegram chat or across all allowlisted chats, with results returned newest first.
Instructions
Search messages by text inside one allowlisted chat, or across all allowlisted chats. Results are newest first.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"query": "<query>"
},
"name": "search_messages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chat | No | Optional allowlisted chat to search. Omit to search every allowlisted chat. | |
| limit | No | Maximum number of results (default from config). | |
| query | Yes | Text to search for. |