Machine-readable version of this page: /method/messages.getForumTopicsByID.md.
Get forum topics by their ID
messages.forumTopics#367617d3 flags:# order_by_create_date:flags.0?true count:int topics:Vector<ForumTopic> messages:Vector<Message> chats:Vector<Chat> users:Vector<User> pts:int = messages.ForumTopics;
---functions---
messages.getForumTopicsByID#af0a4a08 peer:InputPeer topics:Vector<int> = messages.ForumTopics;
| Name | Type | Description |
|---|---|---|
| peer | InputPeer | The supergroup forum, private chat (for forum-enabled bots) or bot forum (for users) where the topic is located. |
| topics | Vector<int> | Topic IDs |
| Code | Type | Description |
|---|---|---|
| 400 | CHANNEL_INVALID | The provided channel is invalid. |
| 400 | TOPICS_EMPTY | You specified no topic IDs. |