Dialog
- class pyrogram.raw.base.Dialog
Chat info.
- Constructors:
This base type has 2 constructors available.
Chat
Dialog in folder
TL Schema
dialog#d58a08c6
flags:#
pinned:flags.2?true
unread_mark:flags.3?true
view_forum_as_messages:flags.6?true
peer:Peer
top_message:int
read_inbox_max_id:int
read_outbox_max_id:int
unread_count:int
unread_mentions_count:int
unread_reactions_count:int
notify_settings:PeerNotifySettings
pts:flags.0?int
draft:flags.1?DraftMessage
folder_id:flags.4?int
ttl_period:flags.5?int
= Dialog
Parameter Tree
Dialog
├── pinned →
true (optional)├── unread_mark →
true (optional)├── view_forum_as_messages →
true (optional)├── peer →
Peer│ ├──
PeerUser│ │ └── user_id →
long│ ├──
PeerChat│ │ └── chat_id →
long│ └──
PeerChannel│ └── channel_id →
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├── notify_settings →
PeerNotifySettings│ └──
PeerNotifySettings│ ├── show_previews →
Bool (optional)│ ├── silent →
Bool (optional)│ ├── mute_until →
int (optional)│ ├── ios_sound →
NotificationSound (optional)│ │ ├──
NotificationSoundDefault│ │ ├──
NotificationSoundNone│ │ ├──
NotificationSoundLocal│ │ │ ├── title →
string│ │ │ └── data →
string│ │ └──
NotificationSoundRingtone│ │ └── id →
long│ ├── android_sound →
NotificationSound (optional)│ │ ├──
NotificationSoundDefault│ │ ├──
NotificationSoundNone│ │ ├──
NotificationSoundLocal│ │ │ ├── title →
string│ │ │ └── data →
string│ │ └──
NotificationSoundRingtone│ │ └── id →
long│ ├── other_sound →
NotificationSound (optional)│ │ ├──
NotificationSoundDefault│ │ ├──
NotificationSoundNone│ │ ├──
NotificationSoundLocal│ │ │ ├── title →
string│ │ │ └── data →
string│ │ └──
NotificationSoundRingtone│ │ └── id →
long│ ├── stories_muted →
Bool (optional)│ ├── stories_hide_sender →
Bool (optional)│ ├── stories_ios_sound →
NotificationSound (optional)│ │ ├──
NotificationSoundDefault│ │ ├──
NotificationSoundNone│ │ ├──
NotificationSoundLocal│ │ │ ├── title →
string│ │ │ └── data →
string│ │ └──
NotificationSoundRingtone│ │ └── id →
long│ ├── stories_android_sound →
NotificationSound (optional)│ │ ├──
NotificationSoundDefault│ │ ├──
NotificationSoundNone│ │ ├──
NotificationSoundLocal│ │ │ ├── title →
string│ │ │ └── data →
string│ │ └──
NotificationSoundRingtone│ │ └── id →
long│ └── stories_other_sound →
NotificationSound (optional)│ ├──
NotificationSoundDefault│ ├──
NotificationSoundNone│ ├──
NotificationSoundLocal│ │ ├── title →
string│ │ └── data →
string│ └── id →
long├── pts →
int (optional)├── draft →
DraftMessage (optional)│ ├──
DraftMessageEmpty│ │ └── date →
int (optional)│ └──
DraftMessage│ ├── no_webpage →
true (optional)│ ├── invert_media →
true (optional)│ ├── reply_to →
InputReplyTo (optional)│ │ ├──
InputReplyToMessage│ │ │ ├── reply_to_msg_id →
int│ │ │ ├── top_msg_id →
int (optional)│ │ │ ├── reply_to_peer_id →
InputPeer (optional)│ │ │ │ ├──
InputPeerEmpty│ │ │ │ ├──
InputPeerSelf│ │ │ │ ├──
InputPeerChat│ │ │ │ ├──
InputPeerUser│ │ │ │ ├──
InputPeerChannel│ │ │ │ ├──
InputPeerUserFromMessage│ │ │ │ └──
InputPeerChannelFromMessage│ │ │ ├── quote_text →
string (optional)│ │ │ ├── quote_entities →
Vector < 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_offset →
int (optional)│ │ │ ├── monoforum_peer_id →
InputPeer (optional)│ │ │ │ ├──
InputPeerEmpty│ │ │ │ ├──
InputPeerSelf│ │ │ │ ├──
InputPeerChat│ │ │ │ ├──
InputPeerUser│ │ │ │ ├──
InputPeerChannel│ │ │ │ ├──
InputPeerUserFromMessage│ │ │ │ └──
InputPeerChannelFromMessage│ │ │ └── todo_item_id →
int (optional)│ │ ├──
InputReplyToStory│ │ │ ├── peer →
InputPeer│ │ │ │ ├──
InputPeerEmpty│ │ │ │ ├──
InputPeerSelf│ │ │ │ ├──
InputPeerChat│ │ │ │ ├──
InputPeerUser│ │ │ │ ├──
InputPeerChannel│ │ │ │ ├──
InputPeerUserFromMessage│ │ │ │ └──
InputPeerChannelFromMessage│ │ │ └── story_id →
int│ │ └──
InputReplyToMonoForum│ │ └── monoforum_peer_id →
InputPeer│ │ ├──
InputPeerEmpty│ │ ├──
InputPeerSelf│ │ ├──
InputPeerChat│ │ ├──
InputPeerUser│ │ ├──
InputPeerChannel│ │ ├──
InputPeerUserFromMessage│ │ └──
InputPeerChannelFromMessage│ ├── message →
string│ ├── entities →
Vector < MessageEntity > (optional)│ │ ├──
MessageEntityUnknown│ │ │ ├── offset →
int│ │ │ └── length →
int│ │ ├──
MessageEntityMention│ │ │ ├── offset →
int│ │ │ └── length →
int│ │ ├──
MessageEntityHashtag│ │ │ ├── offset →
int│ │ │ └── length →
int│ │ ├──
MessageEntityBotCommand│ │ │ ├── offset →
int│ │ │ └── length →
int│ │ ├──
MessageEntityUrl│ │ │ ├── offset →
int│ │ │ └── length →
int│ │ ├──
MessageEntityEmail│ │ │ ├── offset →
int│ │ │ └── length →
int│ │ ├──
MessageEntityBold│ │ │ ├── offset →
int│ │ │ └── length →
int│ │ ├──
MessageEntityItalic│ │ │ ├── offset →
int│ │ │ └── length →
int│ │ ├──
MessageEntityCode│ │ │ ├── offset →
int│ │ │ └── length →
int│ │ ├──
MessageEntityPre│ │ │ ├── offset →
int│ │ │ ├── length →
int│ │ │ └── language →
string│ │ ├──
MessageEntityTextUrl│ │ │ ├── offset →
int│ │ │ ├── length →
int│ │ │ └── url →
string│ │ ├──
MessageEntityMentionName│ │ │ ├── offset →
int│ │ │ ├── length →
int│ │ │ └── user_id →
long│ │ ├──
InputMessageEntityMentionName│ │ │ ├── offset →
int│ │ │ ├── length →
int│ │ │ └── user_id →
InputUser│ │ │ ├──
InputUserEmpty│ │ │ ├──
InputUserSelf│ │ │ ├──
InputUser│ │ │ └──
InputUserFromMessage│ │ ├──
MessageEntityPhone│ │ │ ├── offset →
int│ │ │ └── length →
int│ │ ├──
MessageEntityCashtag│ │ │ ├── offset →
int│ │ │ └── length →
int│ │ ├──
MessageEntityUnderline│ │ │ ├── offset →
int│ │ │ └── length →
int│ │ ├──
MessageEntityStrike│ │ │ ├── offset →
int│ │ │ └── length →
int│ │ ├──
MessageEntityBankCard│ │ │ ├── offset →
int│ │ │ └── length →
int│ │ ├──
MessageEntitySpoiler│ │ │ ├── offset →
int│ │ │ └── length →
int│ │ ├──
MessageEntityCustomEmoji│ │ │ ├── offset →
int│ │ │ ├── length →
int│ │ │ └── document_id →
long│ │ ├──
MessageEntityBlockquote│ │ │ ├── collapsed →
true (optional)│ │ │ ├── offset →
int│ │ │ └── length →
int│ │ └──
MessageEntityFormattedDate│ │ ├── relative →
true (optional)│ │ ├── short_time →
true (optional)│ │ ├── long_time →
true (optional)│ │ ├── short_date →
true (optional)│ │ ├── long_date →
true (optional)│ │ ├── day_of_week →
true (optional)│ │ ├── offset →
int│ │ ├── length →
int│ │ └── date →
int│ ├── media →
InputMedia (optional)│ │ ├──
InputMediaEmpty│ │ ├──
InputMediaUploadedPhoto│ │ ├──
InputMediaPhoto│ │ ├──
InputMediaGeoPoint│ │ ├──
InputMediaContact│ │ ├──
InputMediaUploadedDocument│ │ ├──
InputMediaDocument│ │ ├──
InputMediaVenue│ │ ├──
InputMediaPhotoExternal│ │ ├──
InputMediaDocumentExternal│ │ ├──
InputMediaGame│ │ ├──
InputMediaInvoice│ │ ├──
InputMediaGeoLive│ │ ├──
InputMediaPoll│ │ ├──
InputMediaDice│ │ ├──
InputMediaStory│ │ ├──
InputMediaWebPage│ │ ├──
InputMediaPaidMedia│ │ ├──
InputMediaTodo│ │ └──
InputMediaStakeDice│ ├── date →
int│ ├── effect →
long (optional)│ └── suggested_post →
SuggestedPost (optional)│ └──
SuggestedPost│ ├── accepted →
true (optional)│ ├── rejected →
true (optional)│ ├── price →
StarsAmount (optional)│ │ ├──
StarsAmount│ │ └──
StarsTonAmount│ └── schedule_date →
int (optional)├── folder_id →
int (optional)└── ttl_period →
int (optional)Example
Dialog(
pinned=None,
unread_mark=None,
view_forum_as_messages=None,
peer=PeerUser(user_id=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,
notify_settings=PeerNotifySettings(
show_previews=None,
silent=None,
mute_until=None,
ios_sound=None,
android_sound=None,
other_sound=None,
stories_muted=None,
stories_hide_sender=None,
stories_ios_sound=None,
stories_android_sound=None,
stories_other_sound=None
),
pts=0,
draft=DraftMessageEmpty(date=None),
folder_id=0,
ttl_period=0,
)