Layer 224
constructor
updatePinnedForumTopic#683b2c52 flags:# pinned:flags.0?true peer:Peer topic_id:int = Update;

Parameters

Name Type Description
Pinned flags.0?true Whether the topic was pinned or unpinned
Peer Peer The supergroup forum, private chat (for forum-enabled bots) or bot forum (for users) where the topic is located.
TopicId int The topic ID

Returns

Update

Gogram Example

// Creating UpdatePinnedForumTopic constructor
obj := &tg.UpdatePinnedForumTopic{
    Peer: &tg.Peer{},
    TopicId: 42,

    // Optional fields:
    // Pinned: true,
}