messages.getForumTopicsByID #

Get forum topics by their ID

Layer 223

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;

Parameters #

NameTypeDescription
peerInputPeerThe supergroup forum, private chat (for forum-enabled bots) or bot forum (for users) where the topic is located.
topicsVector<int>Topic IDs

Result #

messages.ForumTopics

Both users and bots can use this method #

Possible errors #

CodeTypeDescription
400CHANNEL_INVALIDThe provided channel is invalid.
400TOPICS_EMPTYYou specified no topic IDs.