messages.WebPagePreview
- class pyrogram.raw.types.messages.WebPagePreview
Represents a webpage preview.
Constructor of
WebPagePreview.- Details:
Layer:
223ID:
8C9A88AC
- Parameters:
media (
MessageMedia) – The messageMediaWebPage or a messageMediaEmpty if there is no preview.chats (List of
Chat) – Chats mentioned in the gift field.users (List of
User) – Users mentioned within the media object.
- Functions:
This object can be returned by 1 function.
Get preview of webpage
TL Schema
messages.webPagePreview#8c9a88ac
media:MessageMedia
chats:Vector<Chat>
users:Vector<User>
= messages.WebPagePreview
Parameter Tree
WebPagePreview
├── media →
MessageMedia│ ├──
MessageMediaEmpty│ ├──
MessageMediaPhoto│ │ ├── spoiler →
true (optional)│ │ ├── photo →
Photo (optional)│ │ │ ├──
PhotoEmpty│ │ │ │ └── id →
long│ │ │ └──
Photo│ │ │ ├── has_stickers →
true (optional)│ │ │ ├── id →
long│ │ │ ├── access_hash →
long│ │ │ ├── file_reference →
bytes│ │ │ ├── date →
int│ │ │ ├── sizes →
Vector < PhotoSize >│ │ │ │ ├──
PhotoSizeEmpty│ │ │ │ ├──
PhotoSize│ │ │ │ ├──
PhotoCachedSize│ │ │ │ ├──
PhotoStrippedSize│ │ │ │ ├──
PhotoSizeProgressive│ │ │ │ └──
PhotoPathSize│ │ │ ├── video_sizes →
Vector < VideoSize > (optional)│ │ │ │ ├──
VideoSize│ │ │ │ ├──
VideoSizeEmojiMarkup│ │ │ │ └──
VideoSizeStickerMarkup│ │ │ └── dc_id →
int│ │ └── ttl_seconds →
int (optional)│ ├──
MessageMediaGeo│ │ └── geo →
GeoPoint│ │ ├──
GeoPointEmpty│ │ └──
GeoPoint│ │ ├── long →
double│ │ ├── lat →
double│ │ ├── access_hash →
long│ │ └── accuracy_radius →
int (optional)│ ├──
MessageMediaContact│ │ ├── phone_number →
string│ │ ├── first_name →
string│ │ ├── last_name →
string│ │ ├── vcard →
string│ │ └── user_id →
long│ ├──
MessageMediaUnsupported│ ├──
MessageMediaDocument│ │ ├── nopremium →
true (optional)│ │ ├── spoiler →
true (optional)│ │ ├── video →
true (optional)│ │ ├── round →
true (optional)│ │ ├── voice →
true (optional)│ │ ├── document →
Document (optional)│ │ │ ├──
DocumentEmpty│ │ │ │ └── id →
long│ │ │ └──
Document│ │ │ ├── id →
long│ │ │ ├── access_hash →
long│ │ │ ├── file_reference →
bytes│ │ │ ├── date →
int│ │ │ ├── mime_type →
string│ │ │ ├── size →
long│ │ │ ├── thumbs →
Vector < PhotoSize > (optional)│ │ │ │ ├──
PhotoSizeEmpty│ │ │ │ ├──
PhotoSize│ │ │ │ ├──
PhotoCachedSize│ │ │ │ ├──
PhotoStrippedSize│ │ │ │ ├──
PhotoSizeProgressive│ │ │ │ └──
PhotoPathSize│ │ │ ├── video_thumbs →
Vector < VideoSize > (optional)│ │ │ │ ├──
VideoSize│ │ │ │ ├──
VideoSizeEmojiMarkup│ │ │ │ └──
VideoSizeStickerMarkup│ │ │ ├── dc_id →
int│ │ │ └── attributes →
Vector < DocumentAttribute >│ │ │ ├──
DocumentAttributeImageSize│ │ │ ├──
DocumentAttributeAnimated│ │ │ ├──
DocumentAttributeSticker│ │ │ ├──
DocumentAttributeVideo│ │ │ ├──
DocumentAttributeAudio│ │ │ ├──
DocumentAttributeFilename│ │ │ ├──
DocumentAttributeHasStickers│ │ │ └──
DocumentAttributeCustomEmoji│ │ ├── alt_documents →
Vector < Document > (optional)│ │ │ ├──
DocumentEmpty│ │ │ │ └── id →
long│ │ │ └──
Document│ │ │ ├── id →
long│ │ │ ├── access_hash →
long│ │ │ ├── file_reference →
bytes│ │ │ ├── date →
int│ │ │ ├── mime_type →
string│ │ │ ├── size →
long│ │ │ ├── thumbs →
Vector < PhotoSize > (optional)│ │ │ │ ├──
PhotoSizeEmpty│ │ │ │ ├──
PhotoSize│ │ │ │ ├──
PhotoCachedSize│ │ │ │ ├──
PhotoStrippedSize│ │ │ │ ├──
PhotoSizeProgressive│ │ │ │ └──
PhotoPathSize│ │ │ ├── video_thumbs →
Vector < VideoSize > (optional)│ │ │ │ ├──
VideoSize│ │ │ │ ├──
VideoSizeEmojiMarkup│ │ │ │ └──
VideoSizeStickerMarkup│ │ │ ├── dc_id →
int│ │ │ └── attributes →
Vector < DocumentAttribute >│ │ │ ├──
DocumentAttributeImageSize│ │ │ ├──
DocumentAttributeAnimated│ │ │ ├──
DocumentAttributeSticker│ │ │ ├──
DocumentAttributeVideo│ │ │ ├──
DocumentAttributeAudio│ │ │ ├──
DocumentAttributeFilename│ │ │ ├──
DocumentAttributeHasStickers│ │ │ └──
DocumentAttributeCustomEmoji│ │ ├── video_cover →
Photo (optional)│ │ │ ├──
PhotoEmpty│ │ │ │ └── id →
long│ │ │ └──
Photo│ │ │ ├── has_stickers →
true (optional)│ │ │ ├── id →
long│ │ │ ├── access_hash →
long│ │ │ ├── file_reference →
bytes│ │ │ ├── date →
int│ │ │ ├── sizes →
Vector < PhotoSize >│ │ │ │ ├──
PhotoSizeEmpty│ │ │ │ ├──
PhotoSize│ │ │ │ ├──
PhotoCachedSize│ │ │ │ ├──
PhotoStrippedSize│ │ │ │ ├──
PhotoSizeProgressive│ │ │ │ └──
PhotoPathSize│ │ │ ├── video_sizes →
Vector < VideoSize > (optional)│ │ │ │ ├──
VideoSize│ │ │ │ ├──
VideoSizeEmojiMarkup│ │ │ │ └──
VideoSizeStickerMarkup│ │ │ └── dc_id →
int│ │ ├── video_timestamp →
int (optional)│ │ └── ttl_seconds →
int (optional)│ ├──
MessageMediaWebPage│ │ ├── force_large_media →
true (optional)│ │ ├── force_small_media →
true (optional)│ │ ├── manual →
true (optional)│ │ ├── safe →
true (optional)│ │ └── webpage →
WebPage│ │ ├──
WebPageEmpty│ │ │ ├── id →
long│ │ │ └── url →
string (optional)│ │ ├──
WebPagePending│ │ │ ├── id →
long│ │ │ ├── url →
string (optional)│ │ │ └── date →
int│ │ ├──
WebPage│ │ │ ├── has_large_media →
true (optional)│ │ │ ├── video_cover_photo →
true (optional)│ │ │ ├── id →
long│ │ │ ├── url →
string│ │ │ ├── display_url →
string│ │ │ ├── hash →
int│ │ │ ├── type →
string (optional)│ │ │ ├── site_name →
string (optional)│ │ │ ├── title →
string (optional)│ │ │ ├── description →
string (optional)│ │ │ ├── photo →
Photo (optional)│ │ │ │ ├──
PhotoEmpty│ │ │ │ └──
Photo│ │ │ ├── embed_url →
string (optional)│ │ │ ├── embed_type →
string (optional)│ │ │ ├── embed_width →
int (optional)│ │ │ ├── embed_height →
int (optional)│ │ │ ├── duration →
int (optional)│ │ │ ├── author →
string (optional)│ │ │ ├── document →
Document (optional)│ │ │ │ ├──
DocumentEmpty│ │ │ │ └──
Document│ │ │ ├── cached_page →
Page (optional)│ │ │ │ └──
Page│ │ │ └── attributes →
Vector < WebPageAttribute > (optional)│ │ │ ├──
WebPageAttributeTheme│ │ │ ├──
WebPageAttributeStory│ │ │ ├──
WebPageAttributeStickerSet│ │ │ ├──
WebPageAttributeUniqueStarGift│ │ │ ├──
WebPageAttributeStarGiftCollection│ │ │ └──
WebPageAttributeStarGiftAuction│ │ └──
WebPageNotModified│ │ └── cached_page_views →
int (optional)│ ├──
MessageMediaVenue│ │ ├── geo →
GeoPoint│ │ │ ├──
GeoPointEmpty│ │ │ └──
GeoPoint│ │ │ ├── long →
double│ │ │ ├── lat →
double│ │ │ ├── access_hash →
long│ │ │ └── accuracy_radius →
int (optional)│ │ ├── title →
string│ │ ├── address →
string│ │ ├── provider →
string│ │ ├── venue_id →
string│ │ └── venue_type →
string│ ├──
MessageMediaGame│ │ └── game →
Game│ │ └──
Game│ │ ├── id →
long│ │ ├── access_hash →
long│ │ ├── short_name →
string│ │ ├── title →
string│ │ ├── description →
string│ │ ├── photo →
Photo│ │ │ ├──
PhotoEmpty│ │ │ └──
Photo│ │ └── document →
Document (optional)│ │ ├──
DocumentEmpty│ │ └──
Document│ ├──
MessageMediaInvoice│ │ ├── shipping_address_requested →
true (optional)│ │ ├── test →
true (optional)│ │ ├── title →
string│ │ ├── description →
string│ │ ├── photo →
WebDocument (optional)│ │ │ ├──
WebDocument│ │ │ │ ├── url →
string│ │ │ │ ├── access_hash →
long│ │ │ │ ├── size →
int│ │ │ │ ├── mime_type →
string│ │ │ │ └── attributes →
Vector < DocumentAttribute >│ │ │ │ ├──
DocumentAttributeImageSize│ │ │ │ ├──
DocumentAttributeAnimated│ │ │ │ ├──
DocumentAttributeSticker│ │ │ │ ├──
DocumentAttributeVideo│ │ │ │ ├──
DocumentAttributeAudio│ │ │ │ ├──
DocumentAttributeFilename│ │ │ │ ├──
DocumentAttributeHasStickers│ │ │ │ └──
DocumentAttributeCustomEmoji│ │ │ └──
WebDocumentNoProxy│ │ │ ├── url →
string│ │ │ ├── size →
int│ │ │ ├── mime_type →
string│ │ │ └── attributes →
Vector < DocumentAttribute >│ │ │ ├──
DocumentAttributeImageSize│ │ │ ├──
DocumentAttributeAnimated│ │ │ ├──
DocumentAttributeSticker│ │ │ ├──
DocumentAttributeVideo│ │ │ ├──
DocumentAttributeAudio│ │ │ ├──
DocumentAttributeFilename│ │ │ ├──
DocumentAttributeHasStickers│ │ │ └──
DocumentAttributeCustomEmoji│ │ ├── receipt_msg_id →
int (optional)│ │ ├── currency →
string│ │ ├── total_amount →
long│ │ ├── start_param →
string│ │ └── extended_media →
MessageExtendedMedia (optional)│ │ ├──
MessageExtendedMediaPreview│ │ │ ├── w →
int (optional)│ │ │ ├── h →
int (optional)│ │ │ ├── thumb →
PhotoSize (optional)│ │ │ │ ├──
PhotoSizeEmpty│ │ │ │ ├──
PhotoSize│ │ │ │ ├──
PhotoCachedSize│ │ │ │ ├──
PhotoStrippedSize│ │ │ │ ├──
PhotoSizeProgressive│ │ │ │ └──
PhotoPathSize│ │ │ └── video_duration →
int (optional)│ │ └──
MessageExtendedMedia│ │ └── media →
MessageMedia│ │ ├──
MessageMediaEmpty│ │ ├──
MessageMediaPhoto│ │ ├──
MessageMediaGeo│ │ ├──
MessageMediaContact│ │ ├──
MessageMediaUnsupported│ │ ├──
MessageMediaDocument│ │ ├──
MessageMediaWebPage│ │ ├──
MessageMediaVenue│ │ ├──
MessageMediaGame│ │ ├──
MessageMediaInvoice│ │ ├──
MessageMediaGeoLive│ │ ├──
MessageMediaPoll│ │ ├──
MessageMediaDice│ │ ├──
MessageMediaStory│ │ ├──
MessageMediaGiveaway│ │ ├──
MessageMediaGiveawayResults│ │ ├──
MessageMediaPaidMedia│ │ ├──
MessageMediaToDo│ │ └──
MessageMediaVideoStream│ ├──
MessageMediaGeoLive│ │ ├── geo →
GeoPoint│ │ │ ├──
GeoPointEmpty│ │ │ └──
GeoPoint│ │ │ ├── long →
double│ │ │ ├── lat →
double│ │ │ ├── access_hash →
long│ │ │ └── accuracy_radius →
int (optional)│ │ ├── heading →
int (optional)│ │ ├── period →
int│ │ └── proximity_notification_radius →
int (optional)│ ├──
MessageMediaPoll│ │ ├── poll →
Poll│ │ │ └──
Poll│ │ │ ├── id →
long│ │ │ ├── closed →
true (optional)│ │ │ ├── public_voters →
true (optional)│ │ │ ├── multiple_choice →
true (optional)│ │ │ ├── quiz →
true (optional)│ │ │ ├── question →
TextWithEntities│ │ │ │ └──
TextWithEntities│ │ │ ├── answers →
Vector < PollAnswer >│ │ │ │ └──
PollAnswer│ │ │ ├── close_period →
int (optional)│ │ │ └── close_date →
int (optional)│ │ └── results →
PollResults│ │ └──
PollResults│ │ ├── min →
true (optional)│ │ ├── results →
Vector < PollAnswerVoters > (optional)│ │ │ └──
PollAnswerVoters│ │ ├── total_voters →
int (optional)│ │ ├── recent_voters →
Vector < Peer > (optional)│ │ │ ├──
PeerUser│ │ │ ├──
PeerChat│ │ │ └──
PeerChannel│ │ ├── solution →
string (optional)│ │ └── solution_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│ ├──
MessageMediaDice│ │ ├── value →
int│ │ ├── emoticon →
string│ │ └── game_outcome →
messages.EmojiGameOutcome (optional)│ │ └──
messages.EmojiGameOutcome│ │ ├── seed →
bytes│ │ ├── stake_ton_amount →
long│ │ └── ton_amount →
long│ ├──
MessageMediaStory│ │ ├── via_mention →
true (optional)│ │ ├── peer →
Peer│ │ │ ├──
PeerUser│ │ │ │ └── user_id →
long│ │ │ ├──
PeerChat│ │ │ │ └── chat_id →
long│ │ │ └──
PeerChannel│ │ │ └── channel_id →
long│ │ ├── id →
int│ │ └── story →
StoryItem (optional)│ │ ├──
StoryItemDeleted│ │ │ └── id →
int│ │ ├──
StoryItemSkipped│ │ │ ├── close_friends →
true (optional)│ │ │ ├── live →
true (optional)│ │ │ ├── id →
int│ │ │ ├── date →
int│ │ │ └── expire_date →
int│ │ └──
StoryItem│ │ ├── pinned →
true (optional)│ │ ├── public →
true (optional)│ │ ├── close_friends →
true (optional)│ │ ├── min →
true (optional)│ │ ├── noforwards →
true (optional)│ │ ├── edited →
true (optional)│ │ ├── contacts →
true (optional)│ │ ├── selected_contacts →
true (optional)│ │ ├── out →
true (optional)│ │ ├── id →
int│ │ ├── date →
int│ │ ├── from_id →
Peer (optional)│ │ │ ├──
PeerUser│ │ │ ├──
PeerChat│ │ │ └──
PeerChannel│ │ ├── fwd_from →
StoryFwdHeader (optional)│ │ │ └──
StoryFwdHeader│ │ ├── expire_date →
int│ │ ├── caption →
string (optional)│ │ ├── 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│ │ ├── media →
MessageMedia│ │ │ ├──
MessageMediaEmpty│ │ │ ├──
MessageMediaPhoto│ │ │ ├──
MessageMediaGeo│ │ │ ├──
MessageMediaContact│ │ │ ├──
MessageMediaUnsupported│ │ │ ├──
MessageMediaDocument│ │ │ ├──
MessageMediaWebPage│ │ │ ├──
MessageMediaVenue│ │ │ ├──
MessageMediaGame│ │ │ ├──
MessageMediaInvoice│ │ │ ├──
MessageMediaGeoLive│ │ │ ├──
MessageMediaPoll│ │ │ ├──
MessageMediaDice│ │ │ ├──
MessageMediaStory│ │ │ ├──
MessageMediaGiveaway│ │ │ ├──
MessageMediaGiveawayResults│ │ │ ├──
MessageMediaPaidMedia│ │ │ ├──
MessageMediaToDo│ │ │ └──
MessageMediaVideoStream│ │ ├── media_areas →
Vector < MediaArea > (optional)│ │ │ ├──
MediaAreaVenue│ │ │ ├──
InputMediaAreaVenue│ │ │ ├──
MediaAreaGeoPoint│ │ │ ├──
MediaAreaSuggestedReaction│ │ │ ├──
MediaAreaChannelPost│ │ │ ├──
InputMediaAreaChannelPost│ │ │ ├──
MediaAreaUrl│ │ │ ├──
MediaAreaWeather│ │ │ └──
MediaAreaStarGift│ │ ├── privacy →
Vector < PrivacyRule > (optional)│ │ │ ├──
PrivacyValueAllowContacts│ │ │ ├──
PrivacyValueAllowAll│ │ │ ├──
PrivacyValueAllowUsers│ │ │ ├──
PrivacyValueDisallowContacts│ │ │ ├──
PrivacyValueDisallowAll│ │ │ ├──
PrivacyValueDisallowUsers│ │ │ ├──
PrivacyValueAllowChatParticipants│ │ │ ├──
PrivacyValueDisallowChatParticipants│ │ │ ├──
PrivacyValueAllowCloseFriends│ │ │ ├──
PrivacyValueAllowPremium│ │ │ ├──
PrivacyValueAllowBots│ │ │ └──
PrivacyValueDisallowBots│ │ ├── views →
StoryViews (optional)│ │ │ └──
StoryViews│ │ ├── sent_reaction →
Reaction (optional)│ │ │ ├──
ReactionEmpty│ │ │ ├──
ReactionEmoji│ │ │ ├──
ReactionCustomEmoji│ │ │ └──
ReactionPaid│ │ └── albums →
Vector < int > (optional)│ ├──
MessageMediaGiveaway│ │ ├── only_new_subscribers →
true (optional)│ │ ├── winners_are_visible →
true (optional)│ │ ├── channels →
Vector < long >│ │ ├── countries_iso2 →
Vector < string > (optional)│ │ ├── prize_description →
string (optional)│ │ ├── quantity →
int│ │ ├── months →
int (optional)│ │ ├── stars →
long (optional)│ │ └── until_date →
int│ │ ├── only_new_subscribers →
true (optional)│ │ ├── refunded →
true (optional)│ │ ├── channel_id →
long│ │ ├── additional_peers_count →
int (optional)│ │ ├── launch_msg_id →
int│ │ ├── winners_count →
int│ │ ├── unclaimed_count →
int│ │ ├── winners →
Vector < long >│ │ ├── months →
int (optional)│ │ ├── stars →
long (optional)│ │ ├── prize_description →
string (optional)│ │ └── until_date →
int│ ├──
MessageMediaPaidMedia│ │ ├── stars_amount →
long│ │ └── extended_media →
Vector < MessageExtendedMedia >│ │ ├──
MessageExtendedMediaPreview│ │ │ ├── w →
int (optional)│ │ │ ├── h →
int (optional)│ │ │ ├── thumb →
PhotoSize (optional)│ │ │ │ ├──
PhotoSizeEmpty│ │ │ │ ├──
PhotoSize│ │ │ │ ├──
PhotoCachedSize│ │ │ │ ├──
PhotoStrippedSize│ │ │ │ ├──
PhotoSizeProgressive│ │ │ │ └──
PhotoPathSize│ │ │ └── video_duration →
int (optional)│ │ └──
MessageExtendedMedia│ │ └── media →
MessageMedia│ │ ├──
MessageMediaEmpty│ │ ├──
MessageMediaPhoto│ │ ├──
MessageMediaGeo│ │ ├──
MessageMediaContact│ │ ├──
MessageMediaUnsupported│ │ ├──
MessageMediaDocument│ │ ├──
MessageMediaWebPage│ │ ├──
MessageMediaVenue│ │ ├──
MessageMediaGame│ │ ├──
MessageMediaInvoice│ │ ├──
MessageMediaGeoLive│ │ ├──
MessageMediaPoll│ │ ├──
MessageMediaDice│ │ ├──
MessageMediaStory│ │ ├──
MessageMediaGiveaway│ │ ├──
MessageMediaGiveawayResults│ │ ├──
MessageMediaPaidMedia│ │ ├──
MessageMediaToDo│ │ └──
MessageMediaVideoStream│ ├──
MessageMediaToDo│ │ ├── todo →
TodoList│ │ │ └──
TodoList│ │ │ ├── others_can_append →
true (optional)│ │ │ ├── others_can_complete →
true (optional)│ │ │ ├── title →
TextWithEntities│ │ │ │ └──
TextWithEntities│ │ │ └── list →
Vector < TodoItem >│ │ │ └──
TodoItem│ │ └── completions →
Vector < TodoCompletion > (optional)│ │ └──
TodoCompletion│ │ ├── id →
int│ │ ├── completed_by →
Peer│ │ │ ├──
PeerUser│ │ │ ├──
PeerChat│ │ │ └──
PeerChannel│ │ └── date →
int│ └──
MessageMediaVideoStream│ ├── rtmp_stream →
true (optional)│ └── call →
InputGroupCall│ ├──
InputGroupCall│ │ ├── id →
long│ │ └── access_hash →
long│ ├──
InputGroupCallSlug│ │ └── slug →
string│ └── msg_id →
int├── chats →
Vector < Chat >│ ├──
ChatEmpty│ │ └── id →
long│ ├──
Chat│ │ ├── creator →
true (optional)│ │ ├── left →
true (optional)│ │ ├── deactivated →
true (optional)│ │ ├── call_active →
true (optional)│ │ ├── call_not_empty →
true (optional)│ │ ├── noforwards →
true (optional)│ │ ├── id →
long│ │ ├── title →
string│ │ ├── photo →
ChatPhoto│ │ │ ├──
ChatPhotoEmpty│ │ │ └──
ChatPhoto│ │ │ ├── has_video →
true (optional)│ │ │ ├── photo_id →
long│ │ │ ├── stripped_thumb →
bytes (optional)│ │ │ └── dc_id →
int│ │ ├── participants_count →
int│ │ ├── date →
int│ │ ├── version →
int│ │ ├── migrated_to →
InputChannel (optional)│ │ │ ├──
InputChannelEmpty│ │ │ ├──
InputChannel│ │ │ └──
InputChannelFromMessage│ │ ├── admin_rights →
ChatAdminRights (optional)│ │ │ └──
ChatAdminRights│ │ │ ├── change_info →
true (optional)│ │ │ ├── post_messages →
true (optional)│ │ │ ├── edit_messages →
true (optional)│ │ │ ├── delete_messages →
true (optional)│ │ │ ├── ban_users →
true (optional)│ │ │ ├── invite_users →
true (optional)│ │ │ ├── pin_messages →
true (optional)│ │ │ ├── add_admins →
true (optional)│ │ │ ├── anonymous →
true (optional)│ │ │ ├── manage_call →
true (optional)│ │ │ ├── other →
true (optional)│ │ │ ├── manage_topics →
true (optional)│ │ │ ├── post_stories →
true (optional)│ │ │ ├── edit_stories →
true (optional)│ │ │ ├── delete_stories →
true (optional)│ │ │ ├── manage_direct_messages →
true (optional)│ │ │ └── manage_ranks →
true (optional)│ │ └── default_banned_rights →
ChatBannedRights (optional)│ │ └──
ChatBannedRights│ │ ├── view_messages →
true (optional)│ │ ├── send_messages →
true (optional)│ │ ├── send_media →
true (optional)│ │ ├── send_stickers →
true (optional)│ │ ├── send_gifs →
true (optional)│ │ ├── send_games →
true (optional)│ │ ├── send_inline →
true (optional)│ │ ├── embed_links →
true (optional)│ │ ├── send_polls →
true (optional)│ │ ├── change_info →
true (optional)│ │ ├── invite_users →
true (optional)│ │ ├── pin_messages →
true (optional)│ │ ├── manage_topics →
true (optional)│ │ ├── send_photos →
true (optional)│ │ ├── send_videos →
true (optional)│ │ ├── send_roundvideos →
true (optional)│ │ ├── send_audios →
true (optional)│ │ ├── send_voices →
true (optional)│ │ ├── send_docs →
true (optional)│ │ ├── send_plain →
true (optional)│ │ ├── edit_rank →
true (optional)│ │ └── until_date →
int│ ├──
ChatForbidden│ │ ├── id →
long│ │ └── title →
string│ ├──
Channel│ │ ├── creator →
true (optional)│ │ ├── left →
true (optional)│ │ ├── broadcast →
true (optional)│ │ ├── verified →
true (optional)│ │ ├── megagroup →
true (optional)│ │ ├── restricted →
true (optional)│ │ ├── signatures →
true (optional)│ │ ├── min →
true (optional)│ │ ├── scam →
true (optional)│ │ ├── has_link →
true (optional)│ │ ├── has_geo →
true (optional)│ │ ├── slowmode_enabled →
true (optional)│ │ ├── call_active →
true (optional)│ │ ├── call_not_empty →
true (optional)│ │ ├── fake →
true (optional)│ │ ├── gigagroup →
true (optional)│ │ ├── noforwards →
true (optional)│ │ ├── join_to_send →
true (optional)│ │ ├── join_request →
true (optional)│ │ ├── forum →
true (optional)│ │ ├── stories_hidden →
true (optional)│ │ ├── stories_hidden_min →
true (optional)│ │ ├── stories_unavailable →
true (optional)│ │ ├── signature_profiles →
true (optional)│ │ ├── autotranslation →
true (optional)│ │ ├── broadcast_messages_allowed →
true (optional)│ │ ├── monoforum →
true (optional)│ │ ├── forum_tabs →
true (optional)│ │ ├── id →
long│ │ ├── access_hash →
long (optional)│ │ ├── title →
string│ │ ├── username →
string (optional)│ │ ├── photo →
ChatPhoto│ │ │ ├──
ChatPhotoEmpty│ │ │ └──
ChatPhoto│ │ │ ├── has_video →
true (optional)│ │ │ ├── photo_id →
long│ │ │ ├── stripped_thumb →
bytes (optional)│ │ │ └── dc_id →
int│ │ ├── date →
int│ │ ├── restriction_reason →
Vector < RestrictionReason > (optional)│ │ │ └──
RestrictionReason│ │ │ ├── platform →
string│ │ │ ├── reason →
string│ │ │ └── text →
string│ │ ├── admin_rights →
ChatAdminRights (optional)│ │ │ └──
ChatAdminRights│ │ │ ├── change_info →
true (optional)│ │ │ ├── post_messages →
true (optional)│ │ │ ├── edit_messages →
true (optional)│ │ │ ├── delete_messages →
true (optional)│ │ │ ├── ban_users →
true (optional)│ │ │ ├── invite_users →
true (optional)│ │ │ ├── pin_messages →
true (optional)│ │ │ ├── add_admins →
true (optional)│ │ │ ├── anonymous →
true (optional)│ │ │ ├── manage_call →
true (optional)│ │ │ ├── other →
true (optional)│ │ │ ├── manage_topics →
true (optional)│ │ │ ├── post_stories →
true (optional)│ │ │ ├── edit_stories →
true (optional)│ │ │ ├── delete_stories →
true (optional)│ │ │ ├── manage_direct_messages →
true (optional)│ │ │ └── manage_ranks →
true (optional)│ │ ├── banned_rights →
ChatBannedRights (optional)│ │ │ └──
ChatBannedRights│ │ │ ├── view_messages →
true (optional)│ │ │ ├── send_messages →
true (optional)│ │ │ ├── send_media →
true (optional)│ │ │ ├── send_stickers →
true (optional)│ │ │ ├── send_gifs →
true (optional)│ │ │ ├── send_games →
true (optional)│ │ │ ├── send_inline →
true (optional)│ │ │ ├── embed_links →
true (optional)│ │ │ ├── send_polls →
true (optional)│ │ │ ├── change_info →
true (optional)│ │ │ ├── invite_users →
true (optional)│ │ │ ├── pin_messages →
true (optional)│ │ │ ├── manage_topics →
true (optional)│ │ │ ├── send_photos →
true (optional)│ │ │ ├── send_videos →
true (optional)│ │ │ ├── send_roundvideos →
true (optional)│ │ │ ├── send_audios →
true (optional)│ │ │ ├── send_voices →
true (optional)│ │ │ ├── send_docs →
true (optional)│ │ │ ├── send_plain →
true (optional)│ │ │ ├── edit_rank →
true (optional)│ │ │ └── until_date →
int│ │ ├── default_banned_rights →
ChatBannedRights (optional)│ │ │ └──
ChatBannedRights│ │ │ ├── view_messages →
true (optional)│ │ │ ├── send_messages →
true (optional)│ │ │ ├── send_media →
true (optional)│ │ │ ├── send_stickers →
true (optional)│ │ │ ├── send_gifs →
true (optional)│ │ │ ├── send_games →
true (optional)│ │ │ ├── send_inline →
true (optional)│ │ │ ├── embed_links →
true (optional)│ │ │ ├── send_polls →
true (optional)│ │ │ ├── change_info →
true (optional)│ │ │ ├── invite_users →
true (optional)│ │ │ ├── pin_messages →
true (optional)│ │ │ ├── manage_topics →
true (optional)│ │ │ ├── send_photos →
true (optional)│ │ │ ├── send_videos →
true (optional)│ │ │ ├── send_roundvideos →
true (optional)│ │ │ ├── send_audios →
true (optional)│ │ │ ├── send_voices →
true (optional)│ │ │ ├── send_docs →
true (optional)│ │ │ ├── send_plain →
true (optional)│ │ │ ├── edit_rank →
true (optional)│ │ │ └── until_date →
int│ │ ├── participants_count →
int (optional)│ │ ├── usernames →
Vector < Username > (optional)│ │ │ └──
Username│ │ │ ├── editable →
true (optional)│ │ │ ├── active →
true (optional)│ │ │ └── username →
string│ │ ├── stories_max_id →
RecentStory (optional)│ │ │ └──
RecentStory│ │ │ ├── live →
true (optional)│ │ │ └── max_id →
int (optional)│ │ ├── color →
PeerColor (optional)│ │ │ ├──
PeerColor│ │ │ │ ├── color →
int (optional)│ │ │ │ └── background_emoji_id →
long (optional)│ │ │ ├──
PeerColorCollectible│ │ │ │ ├── collectible_id →
long│ │ │ │ ├── gift_emoji_id →
long│ │ │ │ ├── background_emoji_id →
long│ │ │ │ ├── accent_color →
int│ │ │ │ ├── colors →
Vector < int >│ │ │ │ ├── dark_accent_color →
int (optional)│ │ │ │ └── dark_colors →
Vector < int > (optional)│ │ │ └──
InputPeerColorCollectible│ │ │ └── collectible_id →
long│ │ ├── profile_color →
PeerColor (optional)│ │ │ ├──
PeerColor│ │ │ │ ├── color →
int (optional)│ │ │ │ └── background_emoji_id →
long (optional)│ │ │ ├──
PeerColorCollectible│ │ │ │ ├── collectible_id →
long│ │ │ │ ├── gift_emoji_id →
long│ │ │ │ ├── background_emoji_id →
long│ │ │ │ ├── accent_color →
int│ │ │ │ ├── colors →
Vector < int >│ │ │ │ ├── dark_accent_color →
int (optional)│ │ │ │ └── dark_colors →
Vector < int > (optional)│ │ │ └──
InputPeerColorCollectible│ │ │ └── collectible_id →
long│ │ ├── emoji_status →
EmojiStatus (optional)│ │ │ ├──
EmojiStatusEmpty│ │ │ ├──
EmojiStatus│ │ │ │ ├── document_id →
long│ │ │ │ └── until →
int (optional)│ │ │ ├──
EmojiStatusCollectible│ │ │ │ ├── collectible_id →
long│ │ │ │ ├── document_id →
long│ │ │ │ ├── title →
string│ │ │ │ ├── slug →
string│ │ │ │ ├── pattern_document_id →
long│ │ │ │ ├── center_color →
int│ │ │ │ ├── edge_color →
int│ │ │ │ ├── pattern_color →
int│ │ │ │ ├── text_color →
int│ │ │ │ └── until →
int (optional)│ │ │ └──
InputEmojiStatusCollectible│ │ │ ├── collectible_id →
long│ │ │ └── until →
int (optional)│ │ ├── level →
int (optional)│ │ ├── subscription_until_date →
int (optional)│ │ ├── bot_verification_icon →
long (optional)│ │ ├── send_paid_messages_stars →
long (optional)│ │ └── linked_monoforum_id →
long (optional)│ └──
ChannelForbidden│ ├── broadcast →
true (optional)│ ├── megagroup →
true (optional)│ ├── monoforum →
true (optional)│ ├── id →
long│ ├── access_hash →
long│ ├── title →
string│ └── until_date →
int (optional)└── users →
Vector < User >├──
UserEmpty│ └── id →
long└──
User├── is_self →
true (optional)├── contact →
true (optional)├── mutual_contact →
true (optional)├── deleted →
true (optional)├── bot →
true (optional)├── bot_chat_history →
true (optional)├── bot_nochats →
true (optional)├── verified →
true (optional)├── restricted →
true (optional)├── min →
true (optional)├── bot_inline_geo →
true (optional)├── support →
true (optional)├── scam →
true (optional)├── apply_min_photo →
true (optional)├── fake →
true (optional)├── bot_attach_menu →
true (optional)├── premium →
true (optional)├── attach_menu_enabled →
true (optional)├── bot_can_edit →
true (optional)├── close_friend →
true (optional)├── stories_hidden →
true (optional)├── stories_unavailable →
true (optional)├── contact_require_premium →
true (optional)├── bot_business →
true (optional)├── bot_has_main_app →
true (optional)├── bot_forum_view →
true (optional)├── bot_forum_can_manage_topics →
true (optional)├── id →
long├── access_hash →
long (optional)├── first_name →
string (optional)├── last_name →
string (optional)├── username →
string (optional)├── phone →
string (optional)├── photo →
UserProfilePhoto (optional)│ ├──
UserProfilePhotoEmpty│ └──
UserProfilePhoto│ ├── has_video →
true (optional)│ ├── personal →
true (optional)│ ├── photo_id →
long│ ├── stripped_thumb →
bytes (optional)│ └── dc_id →
int├── status →
UserStatus (optional)│ ├──
UserStatusEmpty│ ├──
UserStatusOnline│ │ └── expires →
int│ ├──
UserStatusOffline│ │ └── was_online →
int│ ├──
UserStatusRecently│ │ └── by_me →
true (optional)│ ├──
UserStatusLastWeek│ │ └── by_me →
true (optional)│ └──
UserStatusLastMonth│ └── by_me →
true (optional)├── bot_info_version →
int (optional)├── restriction_reason →
Vector < RestrictionReason > (optional)│ └──
RestrictionReason│ ├── platform →
string│ ├── reason →
string│ └── text →
string├── bot_inline_placeholder →
string (optional)├── lang_code →
string (optional)├── emoji_status →
EmojiStatus (optional)│ ├──
EmojiStatusEmpty│ ├──
EmojiStatus│ │ ├── document_id →
long│ │ └── until →
int (optional)│ ├──
EmojiStatusCollectible│ │ ├── collectible_id →
long│ │ ├── document_id →
long│ │ ├── title →
string│ │ ├── slug →
string│ │ ├── pattern_document_id →
long│ │ ├── center_color →
int│ │ ├── edge_color →
int│ │ ├── pattern_color →
int│ │ ├── text_color →
int│ │ └── until →
int (optional)│ ├── collectible_id →
long│ └── until →
int (optional)├── usernames →
Vector < Username > (optional)│ └──
Username│ ├── editable →
true (optional)│ ├── active →
true (optional)│ └── username →
string├── stories_max_id →
RecentStory (optional)│ └──
RecentStory│ ├── live →
true (optional)│ └── max_id →
int (optional)├── color →
PeerColor (optional)│ ├──
PeerColor│ │ ├── color →
int (optional)│ │ └── background_emoji_id →
long (optional)│ ├──
PeerColorCollectible│ │ ├── collectible_id →
long│ │ ├── gift_emoji_id →
long│ │ ├── background_emoji_id →
long│ │ ├── accent_color →
int│ │ ├── colors →
Vector < int >│ │ ├── dark_accent_color →
int (optional)│ │ └── dark_colors →
Vector < int > (optional)│ └── collectible_id →
long├── profile_color →
PeerColor (optional)│ ├──
PeerColor│ │ ├── color →
int (optional)│ │ └── background_emoji_id →
long (optional)│ ├──
PeerColorCollectible│ │ ├── collectible_id →
long│ │ ├── gift_emoji_id →
long│ │ ├── background_emoji_id →
long│ │ ├── accent_color →
int│ │ ├── colors →
Vector < int >│ │ ├── dark_accent_color →
int (optional)│ │ └── dark_colors →
Vector < int > (optional)│ └── collectible_id →
long├── bot_active_users →
int (optional)├── bot_verification_icon →
long (optional)└── send_paid_messages_stars →
long (optional)Example
WebPagePreview(
media=MessageMediaEmpty(),
chats=[
ChatEmpty(id=0)
],
users=[
UserEmpty(id=0)
],
)