messages.getForumTopics
Get topics of a forum
Get [topics of a forum](https://core.telegram.org/api/forum.md)
| Name | Type | Required | Description |
|---|---|---|---|
peer | InputPeer | Yes | The supergroup forum, private chat (for forum-enabled bots) or bot forum (for users) where the topic is located. |
q | string | No | Search query |
icon_emoji_id | long | No | 64-битное целое в десятичной записи. |
closed | Bool | No | Value of TL type `Bool`. |
offset_date | int | Yes | [Offsets for pagination, for more info click here](https://core.telegram.org/api/offsets.md), date of the last message of the last found topic. Use 0 or any date in the future to get results from the last topic. |
offset_id | int | Yes | [Offsets for pagination, for more info click here](https://core.telegram.org/api/offsets.md), ID of the last message of the last found topic (or initially `0`). |
offset_topic | int | Yes | [Offsets for pagination, for more info click here](https://core.telegram.org/api/offsets.md), ID of the last found topic (or initially `0`). |
limit | int | Yes | Maximum number of results to return, [see pagination](https://core.telegram.org/api/offsets.md). For optimal performance, the number of returned topics is chosen by the server and can be smaller than the specified limit. |
Responses
messages.ForumTopics
MTProto RPC
- 400 · CHANNEL_FORUM_MISSING — This supergroup is not a forum.
- 400 · CHANNEL_INVALID — The provided channel is invalid.