Layer 224
method Users
messages.updatePinnedForumTopic#175df251 peer:InputPeer topic_id:int pinned:Bool = Updates;

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.
TopicId int Forum topic ID
Pinned Bool Whether to pin or unpin the topic

Returns

Updates

Gogram Example

// MessagesUpdatePinnedForumTopic - positional arguments
result, err := client.MessagesUpdatePinnedForumTopic(&tg.InputPeerUser{UserID: int64(777000)}, 42, true)
if err != nil {
    // handle error
}
// result is *tg.Updates

Possible Errors

Code Type Description
400 CHANNEL_INVALID The provided channel is invalid.