forumTopic #

Represents a forum topic.

Layer 223

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 #

NameTypeDescription
flags#Flags, see TL conditional fields
myflags.1?trueWhether the topic was created by the current user
closedflags.2?trueWhether the topic is closed (no messages can be sent to it)
pinnedflags.3?trueWhether the topic is pinned
shortflags.5?trueWhether 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.
hiddenflags.6?trueWhether the topic is hidden (only valid for the "General" topic, id=1)
title_missingflags.7?trueIf 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.
idintTopic ID
dateintTopic creation date
peerPeerContains the supergroup/private chat where the topic is located.
This field is useful especially when this object is returned by methods like messages.getMessages, 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.
titlestringTopic title
icon_colorintIf no custom emoji icon is specified, specifies the color of the fallback topic icon (RGB), one of 0x6FB9F0, 0xFFD67E, 0xCB86DB, 0x8EEE98, 0xFF93B2, or 0xFB6F5F.
icon_emoji_idflags.0?longID of the custom emoji used as topic icon.
top_messageintID of the last message that was sent to this topic
read_inbox_max_idintPosition up to which all incoming messages are read.
read_outbox_max_idintPosition up to which all outgoing messages are read.
unread_countintNumber of unread messages
unread_mentions_countintNumber of unread mentions
unread_reactions_countintNumber of unread reactions to messages you sent
unread_poll_votes_countintNumber of unread votes cast in non-anonymous polls » owned by the user in this forum topic.
from_idPeerID of the peer that created the topic
notify_settingsPeerNotifySettingsNotification settings
draftflags.4?DraftMessageMessage draft

Type #

ForumTopic

Admin log #

Both supergroups and channels offer a so-called admin log, a log of recent relevant supergroup and channel actions, like the modification of group/channel settings or information on behalf of an admin, user kicks and bans, and more.

messages.channelMessages #

Channel messages

messages.getForumTopicsByID #

Get forum topics by their ID

Forum topics #

Telegram allows creating forums with multiple distinct topics.

messages.getMessages #

Returns the list of messages by their IDs.

Custom emojis #

Telegram allows including animated and static custom emojis inside of messages.

Mentions and replies #

Telegram allows mentioning other users in case of urgent duckling matters, and quickly navigating to those mentions in order to read them as swiftly as possible.

Polls and quizzes #

Telegram allows sending polls and quizzes, that can be voted on by thousands, if not millions of users in chats and channels.

Message drafts #

How to handle message drafts