Layer 224
method Users
messages.reorderPinnedForumTopics#e7841f0 flags:# force:flags.0?true peer:InputPeer order:Vector<int> = Updates;

Parameters

Name Type Description
Force flags.0?true If not set, the order of only the topics present both server-side and in order will be changed (i. e. mentioning topics not pinned server-side in order will not pin them, and not mentioning topics pinned server-side will not unpin them). If set, the entire server-side pinned topic list will be replaced with order (i. e. mentioning topics not pinned server-side in order will pin them, and not mentioning topics pinned server-side will unpin them)
Peer InputPeer The supergroup forum, private chat (for forum-enabled bots) or bot forum (for users) where the topic is located.
Order Vector<int> Topic IDs

Returns

Updates

Gogram Example

// MessagesReorderPinnedForumTopics - using Params struct
result, err := client.MessagesReorderPinnedForumTopics(&tg.MessagesReorderPinnedForumTopicsParams{
    Peer: &tg.InputPeerUser{UserID: int64(777000)},
    Order: []int{},

    // Optional fields:
    // Force: true,
})
if err != nil {
    // handle error
}
// result is *tg.Updates

Possible Errors

Code Type Description
400 CHANNEL_INVALID The provided channel is invalid.