List forum topics
get_topicsLists forum topics (threads) with message counts for a forum supergroup, helping you identify topic IDs for targeted message retrieval.
Instructions
List the forum topics (threads) of a forum supergroup, with message counts. Pass a topic's id as topic_id to get_messages, search_messages or get_messages_by_date to read only that thread. A chat that is not a forum has no topics.
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": {
"chat_id": "<chat_id>"
},
"name": "get_topics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chat_id | Yes | The chat's ref, as list_chats or search_all_chats returns it (an opaque string; not the numeric Telegram id). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| topics | No | One row per forum topic: id (the topic_id other tools take), title, message_count, last_message_date, is_closed, is_pinned. |