Layer 227
MessagesGetForumTopicsById
Get forum topics by their ID
method
Users
Bots
messages.getForumTopicsByID#af0a4a08 peer:InputPeer topics:Vector<int> = messages.ForumTopics;
Parameters
| 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 |
Returns
messages.ForumTopicsGogram Example
// MessagesGetForumTopicsById - positional arguments result, err := client.MessagesGetForumTopicsById(&tg.InputPeerUser{UserID: int64(777000)}, &tg.VectorInt{}) if err != nil { // handle error } // result is *tg.MessagesForumTopics
Possible Errors
| Code | Type | Description |
|---|---|---|
| 400 | CHANNEL_INVALID | The provided channel is invalid. |
| 400 | TOPICS_EMPTY | You specified no topic IDs. |