ForumTopic#
- class pyrogram.raw.types.ForumTopic#
Represents a forum topic.
Constructor of
ForumTopic.- Details:
Layer:
227ID:
FCDAD815
- Parameters:
id (
int32-bit) – Topic IDdate (
int32-bit) – Topic creation datepeer (
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.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.title (
str) – Topic titleicon_color (
int32-bit) – 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.top_message (
int32-bit) – ID of the last message that was sent to this topicread_inbox_max_id (
int32-bit) – Position up to which all incoming messages are read.read_outbox_max_id (
int32-bit) – Position up to which all outgoing messages are read.unread_count (
int32-bit) – Number of unread messagesunread_mentions_count (
int32-bit) – Number of unread mentionsunread_reactions_count (
int32-bit) – Number of unread reactions to messages you sentunread_poll_votes_count (
int32-bit) – Number of unread votes cast in non-anonymous polls » owned by the user in this forum topic.from_id (
Peer) – ID of the peer that created the topicnotify_settings (
PeerNotifySettings) – Notification settingsmy (
bool, optional) – Whether the topic was created by the current userclosed (
bool, optional) – Whether the topic is closed (no messages can be sent to it)pinned (
bool, optional) – Whether the topic is pinnedshort (
bool, optional) – 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, optional) – Whether the topic is hidden (only valid for the “General” topic, id=1)title_missing (
bool, optional) – 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.icon_emoji_id (
int64-bit, optional) – ID of the custom emoji used as topic icon.draft (
DraftMessage, optional) – Message draft