Telegram Search Messages
telegram_search_messagesSearches your Telegram messages by text, across all chats or (with chat_id from telegram_list_chats) inside one chat. Searches Telegram's servers, so it covers your full history. Requires Telegram connected (telegram_connect).
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": "telegram_search_messages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max messages (default 30, max 100). | |
| query | Yes | Text to search for. | |
| account | No | Which linked Telegram account to use: its label or id from telegram_list_accounts. Leave it out to use the default account. | |
| chat_id | No | Optional chat id from telegram_list_chats to search only that chat. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||