ForumTopic
- class pyrogram.raw.types.ForumTopic
Represents a forum topic.
Constructor of
ForumTopic.- Details:
Layer:
223ID:
CDFF0ECA
- Parameters:
id (
int32-bit) – Topic IDdate (
int32-bit) – Topic creation datepeer (
Peer)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 sentfrom_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 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 (
int64-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
true (optional)true (optional)true (optional)true (optional)true (optional)true (optional)intintPeerPeerUserlongPeerChatlongPeerChannellongstringintlong (optional)intintintintintintPeerPeerUserlongPeerChatlongPeerChannellongPeerNotifySettingsPeerNotifySettingsBool (optional)Bool (optional)int (optional)NotificationSound (optional)NotificationSoundDefaultNotificationSoundNoneNotificationSoundLocalstringstringNotificationSoundRingtonelongNotificationSound (optional)NotificationSoundDefaultNotificationSoundNoneNotificationSoundLocalstringstringNotificationSoundRingtonelongNotificationSound (optional)NotificationSoundDefaultNotificationSoundNoneNotificationSoundLocalstringstringNotificationSoundRingtonelongBool (optional)Bool (optional)NotificationSound (optional)NotificationSoundDefaultNotificationSoundNoneNotificationSoundLocalstringstringNotificationSoundRingtonelongNotificationSound (optional)NotificationSoundDefaultNotificationSoundNoneNotificationSoundLocalstringstringNotificationSoundRingtonelongNotificationSound (optional)NotificationSoundDefaultNotificationSoundNoneNotificationSoundLocalstringstringlongDraftMessage (optional)int (optional)DraftMessagetrue (optional)true (optional)InputReplyTo (optional)InputReplyToMessageintint (optional)InputPeer (optional)InputPeerEmptyInputPeerSelfInputPeerChatInputPeerUserInputPeerChannelInputPeerUserFromMessageInputPeerChannelFromMessagestring (optional)Vector < MessageEntity > (optional)MessageEntityUnknownMessageEntityMentionMessageEntityHashtagMessageEntityBotCommandMessageEntityUrlMessageEntityEmailMessageEntityBoldMessageEntityItalicMessageEntityCodeMessageEntityPreMessageEntityTextUrlMessageEntityMentionNameInputMessageEntityMentionNameMessageEntityPhoneMessageEntityCashtagMessageEntityUnderlineMessageEntityStrikeMessageEntityBankCardMessageEntitySpoilerMessageEntityCustomEmojiMessageEntityBlockquoteMessageEntityFormattedDateint (optional)InputPeer (optional)InputPeerEmptyInputPeerSelfInputPeerChatInputPeerUserInputPeerChannelInputPeerUserFromMessageInputPeerChannelFromMessageint (optional)InputReplyToStoryInputPeerInputPeerEmptyInputPeerSelfInputPeerChatInputPeerUserInputPeerChannelInputPeerUserFromMessageInputPeerChannelFromMessageintInputReplyToMonoForumInputPeerInputPeerEmptyInputPeerSelfInputPeerChatInputPeerUserInputPeerChannelInputPeerUserFromMessagestringVector < MessageEntity > (optional)MessageEntityUnknownintintMessageEntityMentionintintMessageEntityHashtagintintMessageEntityBotCommandintintMessageEntityUrlintintMessageEntityEmailintintMessageEntityBoldintintMessageEntityItalicintintMessageEntityCodeintintMessageEntityPreintintstringMessageEntityTextUrlintintstringMessageEntityMentionNameintintlongintintInputUserInputUserEmptyInputUserSelfInputUserInputUserFromMessageMessageEntityPhoneintintMessageEntityCashtagintintMessageEntityUnderlineintintMessageEntityStrikeintintMessageEntityBankCardintintMessageEntitySpoilerintintMessageEntityCustomEmojiintintlongMessageEntityBlockquotetrue (optional)intinttrue (optional)true (optional)true (optional)true (optional)true (optional)true (optional)intintintInputMedia (optional)InputMediaEmptyInputMediaUploadedPhotoInputMediaPhotoInputMediaGeoPointInputMediaContactInputMediaDocumentInputMediaVenueInputMediaPhotoExternalInputMediaGameInputMediaInvoiceInputMediaGeoLiveInputMediaPollInputMediaDiceInputMediaStoryInputMediaWebPageInputMediaPaidMediaInputMediaTodoInputMediaStakeDiceintlong (optional)SuggestedPost (optional)SuggestedPosttrue (optional)true (optional)StarsAmount (optional)StarsAmountStarsTonAmountint (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(),
)