telegram_chat_topics
List Telegram forum topics to get topic IDs, titles, unread and mention counts, plus closed or hidden status, so you can choose a topic to read.
Instructions
A forum keeps a separate thread per topic, and a flat read interleaves them into a conversation nobody had. Use when the user asks for the topic list of a forum, or which topic id to read. Do not use this to read the messages inside a topic; call telegram_chat_read with that topic id. This returns id, title, icon, per-topic unread and mention counts, whether the topic is closed or hidden, when it was created and a permalink — so chat read --topic-id can page one of them. A chat that is not a forum is refused with that reason, not with an empty list.
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": "<chat>"
},
"name": "telegram_chat_topics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chat | Yes | Chat id, @username, or t.me link of a forum supergroup. | |
| limit | No | Topics to return. | |
| search | No | Only topics whose title matches this text (Telegram does the matching). | |
| account | No | Account label to use. Omit when exactly one account is configured. | |
| offset_id | No | Cursor top-message id returned by the previous page. | |
| offset_date | No | Cursor date returned by the previous page; use with both offset ids. | |
| offset_topic | No | Cursor topic id returned by the previous page. |