Layer 220
constructor
forumTopic#71701da9 flags:# my:flags.1?true closed:flags.2?true pinned:flags.3?true short:flags.5?true hidden:flags.6?true id:int date:int title:string icon_color:int icon_emoji_id:flags.0?long top_message:int read_inbox_max_id:int read_outbox_max_id:int unread_count:int unread_mentions_count:int unread_reactions_count:int from_id:Peer notify_settings:PeerNotifySettings draft:flags.4?DraftMessage = ForumTopic;

Parameters

Name Type Description
Flags # Flags, see TL conditional fields
My flags.1?true Whether the topic was created by the current user
Closed flags.2?true Whether the topic is closed (no messages can be sent to it)
Pinned flags.3?true Whether the topic is pinned
Short flags.5?true Whether this constructor is a reduced version of the full topic information. If set, only the my, closed, id, date, title, icon_color, icon_emoji_id and from_id parameters will contain valid information. Reduced info is usually only returned in topic-related admin log events and in the messages. channel Messages constructor: if needed, full information can be fetched using channels. get Forum Topics By ID.
Hidden flags.6?true Whether the topic is hidden (only valid for the "General" topic, id=1 )
Id int Topic ID
Date int Topic creation date
Title string Topic title
IconColor int If no custom emoji icon is specified, specifies the color of the fallback topic icon (RGB), one of 0 x 6 FB 9 F 0, 0 x FFD 67 E, 0 x CB 86 DB, 0 x 8 EEE 98, 0 x FF 93 B 2, or 0 x FB 6 F 5 F.
IconEmojiId flags.0?long ID of the custom emoji used as topic icon.
TopMessage int ID of the last message that was sent to this topic
ReadInboxMaxId int Position up to which all incoming messages are read.
ReadOutboxMaxId int Position up to which all outgoing messages are read.
UnreadCount int Number of unread messages
UnreadMentionsCount int Number of unread mentions
UnreadReactionsCount int Number of unread reactions to messages you sent
FromId Peer ID of the peer that created the topic
NotifySettings PeerNotifySettings Notification settings
Draft flags.4?DraftMessage Message draft

Returns

ForumTopic

Gogram Example

// Creating ForumTopic constructor
obj := &tg.ForumTopic{
    Id: 0,
    Date: 0,
    Title: "...",
    IconColor: 0,
    TopMessage: 0,
    ReadInboxMaxId: 0,
    // ... more required fields

    // Optional fields:
    // My: true,
    // Closed: true,
    // Pinned: true,
    // Short: true,
    // ... more optional fields
}