MonoForumDialog

class pyrogram.raw.types.MonoForumDialog

Represents a monoforum topic ».

Constructor of SavedDialog.

Details:
  • Layer: 223

  • ID: 64407EA7

Parameters:
  • peer (Peer) – The peer associated to the topic, AKA the topic ID.

  • top_message (int 32-bit) – The latest message ID

  • 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_reactions_count (int 32-bit) – Number of unread reactions.

  • unread_mark (bool, optional) – Whether this topic has a manually set (with messages.markDialogUnread) unread mark.

  • nopaid_messages_exception (bool, optional) – If set, an admin has exempted this peer from payment to send messages using account.toggleNoPaidMessagesException.

  • draft (DraftMessage, optional) – A pending message draft.

TL Schema

monoForumDialog#64407ea7
flags:#
unread_mark:flags.3?true
nopaid_messages_exception:flags.4?true
peer:Peer
top_message:int
read_inbox_max_id:int
read_outbox_max_id:int
unread_count:int
unread_reactions_count:int
draft:flags.1?DraftMessage

= SavedDialog

Parameter Tree

MonoForumDialog
├── unread_marktrue (optional)
├── nopaid_messages_exceptiontrue (optional)
├── peerPeer
│ ├── PeerUser
│ │ └── user_idlong
│ ├── PeerChat
│ │ └── chat_idlong
│ └── PeerChannel
│ └── channel_idlong
├── top_messageint
├── read_inbox_max_idint
├── read_outbox_max_idint
├── unread_countint
├── unread_reactions_countint
└── 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

MonoForumDialog(
    peer=PeerUser(user_id=0),
    top_message=0,
    read_inbox_max_id=0,
    read_outbox_max_id=0,
    unread_count=0,
    unread_reactions_count=0,
)