List forum topics
list_topicsRetrieve topics from an in-scope Telegram forum supergroup, ordered by recent activity, to get topic IDs and metadata for targeting messages, searches, or reads within specific topics.
Instructions
List the topics of one in-scope forum supergroup (a chat whose get_chat_info/list_dialogs forum flag is true), most recently active first, up to limit (no pagination — larger forums are truncated). Returns topic metadata (topic_id, title, unread count, closed, pinned, last message id); topic_id 1 is the General topic. Pass a topic_id to get_messages / search_messages / send_message to work within that topic. Fails on non-forum chats. Titles are untrusted and emitted under topic_title.
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": {
"peer": "<peer>"
},
"name": "list_topics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| peer | Yes | The in-scope forum supergroup whose topics to list (get_chat_info isForum must be true). | |
| limit | No | Page size, clamped to [1, 100] (default 20). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| topics | Yes | The forum topics, most recently active first. | |
| chat_id | Yes | Canonical id of the forum supergroup the topics belong to. | |
| truncated | No | True when the page was cut to fit the output byte cap; re-query with a smaller limit. |