Bot: search messages
bot_search_messagesSearch stored Bale bot messages by text, newest first, and filter by chat or limit results. Persian/Arabic yeh, kaf, digits, and ZWNJ variants match each other for accurate retrieval.
Instructions
Search stored messages by text, newest first. Persian/Arabic yeh, kaf, digits and ZWNJ match each other.
Long texts are cut; bot_read_chat shows them whole.
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": "bot_search_messages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max messages. | |
| query | Yes | Text to find. | |
| chat_id | No | Only this chat. | |
| max_chars | No | Cut each text to this length. |