list_chats
Find Telegram chats by title, type, and unread count. Filter by substring and set result limit to locate chat IDs for other tools.
Instructions
List chats (groups, channels, direct messages).
Args:
query: Optional case-insensitive substring filter on the chat title.
When set, ALL dialogs are scanned so a match beyond the most-recent
limit chats is still found (comparatively expensive, like title
resolution); limit then caps the number of matches returned.
limit: Max results (default 50, capped at 500). Without query this is
also how many dialogs are fetched.
Returns objects with id, title, type ('group'/'channel'/'user'), unread. Use this to find a chat's id/title before calling other tools.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| query | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |