Skip to main content

forumTopic

Represents a forum topic.

type tg.ForumTopic struct { /* ... */ }

Implements ForumTopic.

Fields

NameTypeRequiredDescription
MyboolWhether the topic was created by the current user
ClosedboolWhether the topic is closed (no messages can be sent to it)
PinnedboolWhether the topic is pinned
ShortboolWhether 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.channelMessages constructor: if needed, full information can be fetched using messages.getForumTopicsByID.
HiddenboolWhether the topic is hidden (only valid for the "General" topic, id=1)
TitleMissingboolTitleMissing field of ForumTopic.
IDintyesTopic ID
DateintyesTopic creation date
PeerPeerClassyesContains the supergroup/private chat where the topic is located.
TitlestringyesTopic title
IconColorintyesIf no custom emoji icon is specified, specifies the color of the fallback topic icon (RGB), one of 0x6FB9F0, 0xFFD67E, 0xCB86DB, 0x8EEE98, 0xFF93B2, or 0xFB6F5F.
IconEmojiIDint64ID of the custom emoji used as topic icon.
TopMessageintyesID of the last message that was sent to this topic
ReadInboxMaxIDintyesPosition up to which all incoming messages are read.
ReadOutboxMaxIDintyesPosition up to which all outgoing messages are read.
UnreadCountintyesNumber of unread messages
UnreadMentionsCountintyesNumber of unread mentions
UnreadReactionsCountintyesNumber of unread reactions to messages you sent
UnreadPollVotesCountintyesUnreadPollVotesCount field of ForumTopic.
FromIDPeerClassyesID of the peer that created the topic
NotifySettingsPeerNotifySettingsyesNotification settings
DraftDraftMessageClassMessage draft

References