Search messages
telegram_search_messagesSearch messages in a Telegram chat by full-text query; returns newest matches first with hasMore and nextOffsetId for paging deeper.
Instructions
Full-text search within a chat. Returns matching messages newest-first (max 100 per page). The answer carries hasMore and nextOffsetId for paging deeper into the matches.
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": {
"chat": "<chat>",
"query": "<query>"
},
"name": "telegram_search_messages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chat | Yes | ||
| limit | No | ||
| query | Yes | ||
| offsetId | No |