Layer 227
ForumTopicObj
Represents a forum topic.
constructor
forumTopic#cdff0eca flags:# my:flags.1?true closed:flags.2?true pinned:flags.3?true short:flags.5?true hidden:flags.6?true title_missing:flags.7?true id:int date:int peer:Peer 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 |
|---|---|---|
| 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 messages. get Forum Topics By ID. |
| Hidden | flags .6? true | Whether the topic is hidden (only valid for the "General" topic, id=1 ) |
| TitleMissing | flags .7? true | If set, the topic has no user-defined title, can only be set for the per-user topics of bot forums; if this field is set, the topic title likely needs to be changed by the bot. |
| Id | int | Topic ID |
| Date | int | Topic creation date |
| Peer | Peer | Contains the supergroup/private chat where the topic is located. This field is useful especially when this object is returned by methods like messages. get Messages, which can return messages and forum topics belonging to different (private chat) peers in the same method call, making it impossible to tell the topic's peer based on the method call parameters or surrounding context. |
| 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 |
| UnreadPollVotesCount | int | Number of unread votes cast in non-anonymous polls owned by the user in this forum topic. |
| FromId | Peer | ID of the peer that created the topic |
| NotifySettings | PeerNotifySettings | Notification settings |
| Draft | flags .4? DraftMessage | Message draft |
Returns
ForumTopicGogram Example
// Creating ForumTopicObj constructor obj := &tg.ForumTopicObj{ My: nil, Closed: nil, Pinned: nil, Short: nil, Hidden: nil, TitleMissing: nil, // ... more required fields }