Search contacts and global directory
search_contactsSearch Telegram for users, chats, and channels by name, username, or message content. Enter a query to retrieve matching contacts and groups.
Instructions
Search users/chats/channels by a query (matches name, username, and indexed text).
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_contacts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| query | Yes | ||
| accountId | No |