Layer 224
method
messages.editForumTopic#cecc1134 flags:# peer:InputPeer topic_id:int title:flags.0?string icon_emoji_id:flags.1?long closed:flags.2?Bool hidden:flags.3?Bool = Updates;

Parameters

Name Type Description
Peer InputPeer Supergroup with topic
TopicId int Topic ID to edit
Title flags.0?string Optional new title
IconEmojiId flags.1?long Optional new emoji icon
Closed flags.2?Bool Optional close status
Hidden flags.3?Bool Optional hidden status

Returns

Updates

Gogram Example

// MessagesEditForumTopic - using Params struct
result, err := client.MessagesEditForumTopic(&tg.MessagesEditForumTopicParams{
    Peer: &tg.InputPeerUser{UserID: int64(777000)},
    TopicId: 42,

    // Optional fields:
    // Title: "Hello, World!",
    // IconEmojiId: int64(1234567890),
    // Closed: true,
    // Hidden: true,
})
if err != nil {
    // handle error
}
// result is *tg.Updates