Layer 224
method Users
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 The supergroup forum, private chat (for forum-enabled bots) or bot forum (for users) where the topic is located.
Q flags.0?string Search query
OffsetDate int Offsets for pagination, for more info click here, 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.
OffsetId int Offsets for pagination, for more info click here, ID of the last message of the last found topic (or initially 0 ).
OffsetTopic int Offsets for pagination, for more info click here, ID of the last found topic (or initially 0 ).
Limit int Maximum number of results to return, see pagination. For optimal performance, the number of returned topics is chosen by the server and can be smaller than the specified limit.

Gogram 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

Possible Errors

Code Type Description
400 CHANNEL_INVALID The provided channel is invalid.