List Chats
list_chatsFetches Telegram chats in recent-first order with unread counts and last-message previews; filter by chat type, archive folder, or unread status.
Instructions
List chats in the order Telegram shows them (most recent first), with unread counts and a preview of the last message.
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 |
|---|---|---|---|
| kind | No | all | |
| limit | No | ||
| archived | No | List the Archive folder instead of the main list | |
| unread_only | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |