forumTopic
Represents a forum topic.
type tg.ForumTopic struct { /* ... */ }
Implements ForumTopic.
Fields
| Name | Type | Required | Description |
|---|---|---|---|
My | bool | — | Whether the topic was created by the current user |
Closed | bool | — | Whether the topic is closed (no messages can be sent to it) |
Pinned | bool | — | Whether the topic is pinned |
Short | bool | — | 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.channelMessages constructor: if needed, full information can be fetched using messages.getForumTopicsByID. |
Hidden | bool | — | Whether the topic is hidden (only valid for the "General" topic, id=1) |
TitleMissing | bool | — | TitleMissing field of ForumTopic. |
ID | int | yes | Topic ID |
Date | int | yes | Topic creation date |
Peer | PeerClass | yes | Contains the supergroup/private chat where the topic is located. |
Title | string | yes | Topic title |
IconColor | int | yes | If no custom emoji icon is specified, specifies the color of the fallback topic icon (RGB), one of 0x6FB9F0, 0xFFD67E, 0xCB86DB, 0x8EEE98, 0xFF93B2, or 0xFB6F5F. |
IconEmojiID | int64 | — | ID of the custom emoji used as topic icon. |
TopMessage | int | yes | ID of the last message that was sent to this topic |
ReadInboxMaxID | int | yes | Position up to which all incoming messages are read. |
ReadOutboxMaxID | int | yes | Position up to which all outgoing messages are read. |
UnreadCount | int | yes | Number of unread messages |
UnreadMentionsCount | int | yes | Number of unread mentions |
UnreadReactionsCount | int | yes | Number of unread reactions to messages you sent |
UnreadPollVotesCount | int | yes | UnreadPollVotesCount field of ForumTopic. |
FromID | PeerClass | yes | ID of the peer that created the topic |
NotifySettings | PeerNotifySettings | yes | Notification settings |
Draft | DraftMessageClass | — | Message draft |
References
- Official documentation
- Generated Go reference
- TL definition:
forumTopic#fcdad815