tg_list_topics
Lists forum topics in a Telegram supergroup and returns topic_id values for use with message search and retrieval. Supports title filtering and pagination.
Instructions
List forum topics of a supergroup; use the returned topic_id as
topic_id in tg_search_messages / tg_get_messages.
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": "tg_list_topics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chat | Yes | Chat reference: @username, t.me link, or numeric chat id. | |
| limit | No | ||
| query | No | Optional topic title filter. | |
| offset_topic | No | Pagination cursor from a previous call. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||