Layer 224
MessagesGetForumTopics
Get forum topics from a supergroup
method
messages.getForumTopics#3ba47bff flags:# peer:InputPeer q:flags.0?string offset_date:int offset_id:int offset_topic:int limit:int = messages.ForumTopics;
Parameters
| Name | Type | Description |
|---|---|---|
| Peer | InputPeer | Supergroup to query |
| Q | flags.0?string | Optional search query |
| OffsetDate | int | Pagination offset date |
| OffsetId | int | Pagination offset ID |
| OffsetTopic | int | Pagination offset topic |
| Limit | int | Maximum topics |
Returns
messages.ForumTopicsGogram Example
// MessagesGetForumTopics - using Params struct result, err := client.MessagesGetForumTopics(&tg.MessagesGetForumTopicsParams{ Peer: &tg.InputPeerUser{UserID: int64(777000)}, OffsetDate: 42, OffsetId: 42, OffsetTopic: 42, Limit: 42, // Optional fields: // Q: "Hello, World!", }) if err != nil { // handle error } // result is *tg.MessagesForumTopics