ForumTopic

class pyrogram.raw.types.ForumTopic

Represents a forum topic.

Constructor of ForumTopic.

Details:
  • Layer: 223

  • ID: CDFF0ECA

Parameters:
  • id (int 32-bit) – Topic ID

  • date (int 32-bit) – Topic creation date

  • peer (Peer)

  • title (str) – Topic title

  • icon_color (int 32-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 (int 32-bit) – ID of the last message that was sent to this topic

  • read_inbox_max_id (int 32-bit) – Position up to which all incoming messages are read.

  • read_outbox_max_id (int 32-bit) – Position up to which all outgoing messages are read.

  • unread_count (int 32-bit) – Number of unread messages

  • unread_mentions_count (int 32-bit) – Number of unread mentions

  • unread_reactions_count (int 32-bit) – Number of unread reactions to messages you sent

  • from_id (Peer) – ID of the peer that created the topic

  • notify_settings (PeerNotifySettings) – Notification settings

  • my (bool, optional) – Whether the topic was created by the current user

  • closed (bool, optional) – Whether the topic is closed (no messages can be sent to it)

  • pinned (bool, optional) – Whether the topic is pinned

  • short (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 channels.getForumTopicsByID.

  • hidden (bool, optional) – Whether the topic is hidden (only valid for the “General” topic, id=1)

  • title_missing (bool, optional)

  • icon_emoji_id (int 64-bit, optional) – ID of the custom emoji used as topic icon.

  • draft (DraftMessage, optional) – Message draft

TL Schema

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

Parameter Tree

ForumTopic
├── mytrue (optional)
├── closedtrue (optional)
├── pinnedtrue (optional)
├── shorttrue (optional)
├── hiddentrue (optional)
├── title_missingtrue (optional)
├── idint
├── dateint
├── peerPeer
│ ├── PeerUser
│ │ └── user_idlong
│ ├── PeerChat
│ │ └── chat_idlong
│ └── PeerChannel
│ └── channel_idlong
├── titlestring
├── icon_colorint
├── icon_emoji_idlong (optional)
├── top_messageint
├── read_inbox_max_idint
├── read_outbox_max_idint
├── unread_countint
├── unread_mentions_countint
├── unread_reactions_countint
├── from_idPeer
│ ├── PeerUser
│ │ └── user_idlong
│ ├── PeerChat
│ │ └── chat_idlong
│ └── PeerChannel
│ └── channel_idlong
├── notify_settingsPeerNotifySettings
│ └── PeerNotifySettings
│ ├── show_previewsBool (optional)
│ ├── silentBool (optional)
│ ├── mute_untilint (optional)
│ ├── ios_soundNotificationSound (optional)
│ │ ├── NotificationSoundDefault
│ │ ├── NotificationSoundNone
│ │ ├── NotificationSoundLocal
│ │ │ ├── titlestring
│ │ │ └── datastring
│ │ └── NotificationSoundRingtone
│ │ └── idlong
│ ├── android_soundNotificationSound (optional)
│ │ ├── NotificationSoundDefault
│ │ ├── NotificationSoundNone
│ │ ├── NotificationSoundLocal
│ │ │ ├── titlestring
│ │ │ └── datastring
│ │ └── NotificationSoundRingtone
│ │ └── idlong
│ ├── other_soundNotificationSound (optional)
│ │ ├── NotificationSoundDefault
│ │ ├── NotificationSoundNone
│ │ ├── NotificationSoundLocal
│ │ │ ├── titlestring
│ │ │ └── datastring
│ │ └── NotificationSoundRingtone
│ │ └── idlong
│ ├── stories_mutedBool (optional)
│ ├── stories_hide_senderBool (optional)
│ ├── stories_ios_soundNotificationSound (optional)
│ │ ├── NotificationSoundDefault
│ │ ├── NotificationSoundNone
│ │ ├── NotificationSoundLocal
│ │ │ ├── titlestring
│ │ │ └── datastring
│ │ └── NotificationSoundRingtone
│ │ └── idlong
│ ├── stories_android_soundNotificationSound (optional)
│ │ ├── NotificationSoundDefault
│ │ ├── NotificationSoundNone
│ │ ├── NotificationSoundLocal
│ │ │ ├── titlestring
│ │ │ └── datastring
│ │ └── NotificationSoundRingtone
│ │ └── idlong
│ └── stories_other_soundNotificationSound (optional)
│ ├── NotificationSoundNone
│ │ ├── titlestring
│ │ └── datastring
│ └── idlong
└── draftDraftMessage (optional)
│ └── dateint (optional)
└── DraftMessage
├── no_webpagetrue (optional)
├── invert_mediatrue (optional)
├── reply_toInputReplyTo (optional)
│ ├── InputReplyToMessage
│ │ ├── reply_to_msg_idint
│ │ ├── top_msg_idint (optional)
│ │ ├── reply_to_peer_idInputPeer (optional)
│ │ │ ├── InputPeerEmpty
│ │ │ ├── InputPeerSelf
│ │ │ ├── InputPeerChat
│ │ │ ├── InputPeerUser
│ │ │ ├── InputPeerChannel
│ │ │ ├── InputPeerUserFromMessage
│ │ │ └── InputPeerChannelFromMessage
│ │ ├── quote_textstring (optional)
│ │ ├── quote_entitiesVector < MessageEntity > (optional)
│ │ │ ├── MessageEntityUnknown
│ │ │ ├── MessageEntityMention
│ │ │ ├── MessageEntityHashtag
│ │ │ ├── MessageEntityBotCommand
│ │ │ ├── MessageEntityUrl
│ │ │ ├── MessageEntityEmail
│ │ │ ├── MessageEntityBold
│ │ │ ├── MessageEntityItalic
│ │ │ ├── MessageEntityCode
│ │ │ ├── MessageEntityPre
│ │ │ ├── MessageEntityTextUrl
│ │ │ ├── MessageEntityMentionName
│ │ │ ├── InputMessageEntityMentionName
│ │ │ ├── MessageEntityPhone
│ │ │ ├── MessageEntityCashtag
│ │ │ ├── MessageEntityUnderline
│ │ │ ├── MessageEntityStrike
│ │ │ ├── MessageEntityBankCard
│ │ │ ├── MessageEntitySpoiler
│ │ │ ├── MessageEntityCustomEmoji
│ │ │ ├── MessageEntityBlockquote
│ │ │ └── MessageEntityFormattedDate
│ │ ├── quote_offsetint (optional)
│ │ ├── monoforum_peer_idInputPeer (optional)
│ │ │ ├── InputPeerEmpty
│ │ │ ├── InputPeerSelf
│ │ │ ├── InputPeerChat
│ │ │ ├── InputPeerUser
│ │ │ ├── InputPeerChannel
│ │ │ ├── InputPeerUserFromMessage
│ │ │ └── InputPeerChannelFromMessage
│ │ └── todo_item_idint (optional)
│ ├── InputReplyToStory
│ │ ├── peerInputPeer
│ │ │ ├── InputPeerEmpty
│ │ │ ├── InputPeerSelf
│ │ │ ├── InputPeerChat
│ │ │ ├── InputPeerUser
│ │ │ ├── InputPeerChannel
│ │ │ ├── InputPeerUserFromMessage
│ │ │ └── InputPeerChannelFromMessage
│ │ └── story_idint
│ └── InputReplyToMonoForum
│ └── monoforum_peer_idInputPeer
│ ├── InputPeerEmpty
│ ├── InputPeerSelf
│ ├── InputPeerChat
│ ├── InputPeerUser
│ ├── InputPeerChannel
├── messagestring
├── entitiesVector < MessageEntity > (optional)
│ ├── MessageEntityUnknown
│ │ ├── offsetint
│ │ └── lengthint
│ ├── MessageEntityMention
│ │ ├── offsetint
│ │ └── lengthint
│ ├── MessageEntityHashtag
│ │ ├── offsetint
│ │ └── lengthint
│ │ ├── offsetint
│ │ └── lengthint
│ ├── MessageEntityUrl
│ │ ├── offsetint
│ │ └── lengthint
│ ├── MessageEntityEmail
│ │ ├── offsetint
│ │ └── lengthint
│ ├── MessageEntityBold
│ │ ├── offsetint
│ │ └── lengthint
│ ├── MessageEntityItalic
│ │ ├── offsetint
│ │ └── lengthint
│ ├── MessageEntityCode
│ │ ├── offsetint
│ │ └── lengthint
│ ├── MessageEntityPre
│ │ ├── offsetint
│ │ ├── lengthint
│ │ └── languagestring
│ ├── MessageEntityTextUrl
│ │ ├── offsetint
│ │ ├── lengthint
│ │ └── urlstring
│ │ ├── offsetint
│ │ ├── lengthint
│ │ └── user_idlong
│ │ ├── offsetint
│ │ ├── lengthint
│ │ └── user_idInputUser
│ │ ├── InputUserEmpty
│ │ ├── InputUserSelf
│ │ ├── InputUser
│ │ └── InputUserFromMessage
│ ├── MessageEntityPhone
│ │ ├── offsetint
│ │ └── lengthint
│ ├── MessageEntityCashtag
│ │ ├── offsetint
│ │ └── lengthint
│ │ ├── offsetint
│ │ └── lengthint
│ ├── MessageEntityStrike
│ │ ├── offsetint
│ │ └── lengthint
│ ├── MessageEntityBankCard
│ │ ├── offsetint
│ │ └── lengthint
│ ├── MessageEntitySpoiler
│ │ ├── offsetint
│ │ └── lengthint
│ │ ├── offsetint
│ │ ├── lengthint
│ │ └── document_idlong
│ │ ├── collapsedtrue (optional)
│ │ ├── offsetint
│ │ └── lengthint
│ ├── relativetrue (optional)
│ ├── short_timetrue (optional)
│ ├── long_timetrue (optional)
│ ├── short_datetrue (optional)
│ ├── long_datetrue (optional)
│ ├── day_of_weektrue (optional)
│ ├── offsetint
│ ├── lengthint
│ └── dateint
├── mediaInputMedia (optional)
│ ├── InputMediaEmpty
│ ├── InputMediaPhoto
│ ├── InputMediaGeoPoint
│ ├── InputMediaContact
│ ├── InputMediaDocument
│ ├── InputMediaVenue
│ ├── InputMediaGame
│ ├── InputMediaInvoice
│ ├── InputMediaGeoLive
│ ├── InputMediaPoll
│ ├── InputMediaDice
│ ├── InputMediaStory
│ ├── InputMediaWebPage
│ ├── InputMediaPaidMedia
│ ├── InputMediaTodo
│ └── InputMediaStakeDice
├── dateint
├── effectlong (optional)
└── suggested_postSuggestedPost (optional)
└── SuggestedPost
├── acceptedtrue (optional)
├── rejectedtrue (optional)
├── priceStarsAmount (optional)
│ ├── StarsAmount
│ └── StarsTonAmount
└── schedule_dateint (optional)

Example

ForumTopic(
    id=0,
    date=0,
    peer=PeerUser(user_id=0),
    title="text",
    icon_color=0,
    top_message=0,
    read_inbox_max_id=0,
    read_outbox_max_id=0,
    unread_count=0,
    unread_mentions_count=0,
    unread_reactions_count=0,
    from_id=PeerUser(user_id=0),
    notify_settings=PeerNotifySettings(),
)