tg_dialogs
List Telegram chats by recent activity with unread counts. Filter by unread status, archived folder, title query, or chat type to find conversations or browse groups and channels.
Instructions
List chats, most recent first, with unread counts.
A chat row leaves out what the default already says: no pinned means not
pinned, no unread means nothing unread, no username means the chat has
none. The link is https://t.me/ plus the username.
Args: limit: how many chats to return. unread_only: only chats with unread messages or mentions. archived: false = main list, true = archive only, null = both folders. This account keeps most chats archived, so pass null when searching for a chat rather than browsing the main list. query: filter chats whose title contains this text. kind: keep only one type — "user", "bot", "group" or "channel"; kind="group" answers "what groups am I in"; kind="inactive" — groups and channels nothing happens in anymore; kind="saved" — the sub-folders of Saved Messages: Telegram groups everything you forwarded there by its original author. Read one of them with tg_history(chat="me", saved_from=).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | ||
| limit | No | ||
| query | No | ||
| archived | No | ||
| unread_only | No |