list_chats
Lists permitted Telegram chats, including archived unless folder rules exclude them, with search, type/folder filters, and cursor-based pagination.
Instructions
List permitted chats, optionally from a union of folders. Page through all results.
query matches chat title or username. Archive chats are included unless folder rules exclude them. A cursor freezes the selected chat list; continue with the same filters.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "list_chats"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| query | No | ||
| cursor | No | ||
| chat_type | No | ||
| folder_ids | No |