Layer 224
MessagesCreateForumTopic
Create a new forum topic in a supergroup
method
messages.createForumTopic#2f98c3d5 flags:# title_missing:flags.4?true peer:InputPeer title:string icon_color:flags.0?int icon_emoji_id:flags.3?long random_id:long send_as:flags.2?InputPeer = Updates;
Parameters
| Name | Type | Description |
|---|---|---|
| TitleMissing | flags.4?true | |
| Peer | InputPeer | Supergroup to create topic in |
| Title | string | Topic title |
| IconColor | flags.0?int | Optional icon color (RGB) |
| IconEmojiId | flags.3?long | Optional custom emoji for icon |
| RandomId | long | Random ID for deduplication |
| SendAs | flags.2?InputPeer | Optional sender peer |
Returns
UpdatesGogram Example
// MessagesCreateForumTopic - using Params struct result, err := client.MessagesCreateForumTopic(&tg.MessagesCreateForumTopicParams{ Peer: &tg.InputPeerUser{UserID: int64(777000)}, Title: "Hello, World!", RandomId: int64(1234567890), // Optional fields: // TitleMissing: true, // IconColor: 42, // IconEmojiId: int64(1234567890), // SendAs: &tg.InputPeerUser{UserID: int64(777000)}, }) if err != nil { // handle error } // result is *tg.Updates