WebPage
- class pyrogram.raw.types.WebPage
Webpage preview
Constructor of
WebPage.- Details:
Layer:
223ID:
E89C45B2
- Parameters:
id (
int64-bit) – Preview IDurl (
str) – URL of previewed webpagedisplay_url (
str) – Webpage URL to be displayed to the userhash (
int32-bit) – Hash used for caching, for more info click herehas_large_media (
bool, optional) – Whether the size of the media in the preview can be changed.video_cover_photo (
bool, optional) – Represents a custom video cover.type (
str, optional) – Type of the web page. One of the following: - app- article- document- gif- photo- profile- telegram_album- telegram_auction- telegram_background- telegram_bot- telegram_botapp- telegram_call- telegram_channel- telegram_channel_boost- telegram_channel_direct- telegram_channel_request- telegram_chat- telegram_chat_request- telegram_chatlist- telegram_collection- telegram_community- telegram_giftcode- telegram_group_boost- telegram_livestream- telegram_megagroup- telegram_megagroup_request- telegram_message- telegram_nft- telegram_stickerset- telegram_story- telegram_story_album- telegram_theme- telegram_user- telegram_videochat- telegram_voicechat- videosite_name (
str, optional) – Short name of the site (e.g., Google Docs, App Store)title (
str, optional) – Title of the contentdescription (
str, optional) – Content descriptionphoto (
Photo, optional) – Image representing the contentembed_url (
str, optional) – URL to show in the embedded previewembed_type (
str, optional) – MIME type of the embedded preview, (e.g., text/html or video/mp4)embed_width (
int32-bit, optional) – Width of the embedded previewembed_height (
int32-bit, optional) – Height of the embedded previewduration (
int32-bit, optional) – Duration of the content, in secondsauthor (
str, optional) – Author of the contentdocument (
Document, optional) – Preview of the content as a media filecached_page (
Page, optional) – Page contents in instant view formatattributes (List of
WebPageAttribute, optional) – Webpage attributes
TL Schema
webPage#e89c45b2
flags:#
has_large_media:flags.13?true
video_cover_photo:flags.14?true
id:long
url:string
display_url:string
hash:int
type:flags.0?string
site_name:flags.1?string
title:flags.2?string
description:flags.3?string
photo:flags.4?Photo
embed_url:flags.5?string
embed_type:flags.5?string
embed_width:flags.6?int
embed_height:flags.6?int
duration:flags.7?int
author:flags.8?string
document:flags.9?Document
cached_page:flags.10?Page
attributes:flags.12?Vector<WebPageAttribute>
= WebPage
Parameter Tree
true (optional)true (optional)longstringstringintstring (optional)string (optional)string (optional)string (optional)Photo (optional)PhotoEmptylongPhototrue (optional)longlongbytesintVector < PhotoSize >PhotoSizeEmptystringPhotoSizestringintintintPhotoCachedSizestringintintbytesPhotoStrippedSizestringbytesPhotoSizeProgressivestringintintVector < int >PhotoPathSizestringbytesVector < VideoSize > (optional)VideoSizestringintintintdouble (optional)VideoSizeEmojiMarkuplongVector < int >VideoSizeStickerMarkupInputStickerSetInputStickerSetEmptyInputStickerSetIDInputStickerSetShortNameInputStickerSetAnimatedEmojiInputStickerSetDiceInputStickerSetAnimatedEmojiAnimationsInputStickerSetPremiumGiftsInputStickerSetEmojiGenericAnimationsInputStickerSetEmojiDefaultStatusesInputStickerSetEmojiDefaultTopicIconsInputStickerSetTonGiftslongVector < int >intstring (optional)string (optional)int (optional)int (optional)int (optional)string (optional)Document (optional)DocumentEmptylongDocumentlonglongbytesintstringlongVector < PhotoSize > (optional)PhotoSizeEmptystringPhotoSizestringintintintPhotoCachedSizestringintintbytesPhotoStrippedSizestringbytesPhotoSizeProgressivestringintintVector < int >PhotoPathSizestringbytesVector < VideoSize > (optional)VideoSizestringintintintdouble (optional)VideoSizeEmojiMarkuplongVector < int >VideoSizeStickerMarkupInputStickerSetInputStickerSetEmptyInputStickerSetIDInputStickerSetShortNameInputStickerSetAnimatedEmojiInputStickerSetDiceInputStickerSetAnimatedEmojiAnimationsInputStickerSetPremiumGiftsInputStickerSetEmojiGenericAnimationsInputStickerSetEmojiDefaultStatusesInputStickerSetEmojiDefaultTopicIconsInputStickerSetTonGiftslongVector < int >intVector < DocumentAttribute >intintDocumentAttributeStickertrue (optional)stringInputStickerSetInputStickerSetEmptyInputStickerSetIDInputStickerSetShortNameInputStickerSetAnimatedEmojiInputStickerSetDiceInputStickerSetAnimatedEmojiAnimationsInputStickerSetPremiumGiftsInputStickerSetEmojiGenericAnimationsInputStickerSetEmojiDefaultStatusesInputStickerSetEmojiDefaultTopicIconsInputStickerSetTonGiftsMaskCoords (optional)MaskCoordsDocumentAttributeVideotrue (optional)true (optional)true (optional)doubleintintint (optional)double (optional)string (optional)DocumentAttributeAudiotrue (optional)intstring (optional)string (optional)bytes (optional)stringtrue (optional)true (optional)stringInputStickerSetInputStickerSetEmptyInputStickerSetIDInputStickerSetShortNameInputStickerSetDiceInputStickerSetTonGiftsPage (optional)Pagetrue (optional)true (optional)true (optional)stringVector < PageBlock >PageBlockUnsupportedPageBlockTitleRichTextTextEmptyTextPlainTextBoldTextItalicTextUnderlineTextStrikeTextFixedTextUrlTextEmailTextConcatTextSubscriptTextSuperscriptTextMarkedTextPhoneTextImageTextAnchorPageBlockSubtitleRichTextTextEmptyTextPlainTextBoldTextItalicTextUnderlineTextStrikeTextFixedTextUrlTextEmailTextConcatTextSubscriptTextSuperscriptTextMarkedTextPhoneTextImageTextAnchorPageBlockAuthorDateRichTextTextEmptyTextPlainTextBoldTextItalicTextUnderlineTextStrikeTextFixedTextUrlTextEmailTextConcatTextSubscriptTextSuperscriptTextMarkedTextPhoneTextImageTextAnchorintPageBlockHeaderRichTextTextEmptyTextPlainTextBoldTextItalicTextUnderlineTextStrikeTextFixedTextUrlTextEmailTextConcatTextSubscriptTextSuperscriptTextMarkedTextPhoneTextImageTextAnchorPageBlockSubheaderRichTextTextEmptyTextPlainTextBoldTextItalicTextUnderlineTextStrikeTextFixedTextUrlTextEmailTextConcatTextSubscriptTextSuperscriptTextMarkedTextPhoneTextImageTextAnchorPageBlockParagraphRichTextTextEmptyTextPlainTextBoldTextItalicTextUnderlineTextStrikeTextFixedTextUrlTextEmailTextConcatTextSubscriptTextSuperscriptTextMarkedTextPhoneTextImageTextAnchorPageBlockPreformattedRichTextTextEmptyTextPlainTextBoldTextItalicTextUnderlineTextStrikeTextFixedTextUrlTextEmailTextConcatTextSubscriptTextSuperscriptTextMarkedTextPhoneTextImageTextAnchorstringPageBlockFooterRichTextTextEmptyTextPlainTextBoldTextItalicTextUnderlineTextStrikeTextFixedTextUrlTextEmailTextConcatTextSubscriptTextSuperscriptTextMarkedTextPhoneTextImageTextAnchorPageBlockDividerPageBlockAnchorstringPageBlockListVector < PageListItem >PageListItemTextPageListItemBlocksPageBlockBlockquoteRichTextTextEmptyTextPlainTextBoldTextItalicTextUnderlineTextStrikeTextFixedTextUrlTextEmailTextConcatTextSubscriptTextSuperscriptTextMarkedTextPhoneTextImageTextAnchorRichTextTextEmptyTextPlainTextBoldTextItalicTextUnderlineTextStrikeTextFixedTextUrlTextEmailTextConcatTextSubscriptTextSuperscriptTextMarkedTextPhoneTextImageTextAnchorPageBlockPullquoteRichTextTextEmptyTextPlainTextBoldTextItalicTextUnderlineTextStrikeTextFixedTextUrlTextEmailTextConcatTextSubscriptTextSuperscriptTextMarkedTextPhoneTextImageTextAnchorRichTextTextEmptyTextPlainTextBoldTextItalicTextUnderlineTextStrikeTextFixedTextUrlTextEmailTextConcatTextSubscriptTextSuperscriptTextMarkedTextPhoneTextImageTextAnchorPageBlockPhotolongPageCaptionPageCaptionstring (optional)long (optional)PageBlockVideotrue (optional)true (optional)longPageCaptionPageCaptionPageBlockCoverPageBlockPageBlockUnsupportedPageBlockTitlePageBlockSubtitlePageBlockAuthorDatePageBlockHeaderPageBlockSubheaderPageBlockParagraphPageBlockPreformattedPageBlockFooterPageBlockDividerPageBlockAnchorPageBlockListPageBlockBlockquotePageBlockPullquotePageBlockPhotoPageBlockVideoPageBlockCoverPageBlockEmbedPageBlockEmbedPostPageBlockCollagePageBlockSlideshowPageBlockChannelPageBlockAudioPageBlockKickerPageBlockTablePageBlockOrderedListPageBlockDetailsPageBlockRelatedArticlesPageBlockMapPageBlockEmbedtrue (optional)true (optional)string (optional)string (optional)long (optional)int (optional)int (optional)PageCaptionPageCaptionPageBlockEmbedPoststringlonglongstringintVector < PageBlock >PageBlockUnsupportedPageBlockTitlePageBlockSubtitlePageBlockAuthorDatePageBlockHeaderPageBlockSubheaderPageBlockParagraphPageBlockPreformattedPageBlockFooterPageBlockDividerPageBlockAnchorPageBlockListPageBlockBlockquotePageBlockPullquotePageBlockPhotoPageBlockVideoPageBlockCoverPageBlockEmbedPageBlockEmbedPostPageBlockCollagePageBlockSlideshowPageBlockChannelPageBlockAudioPageBlockKickerPageBlockTablePageBlockOrderedListPageBlockDetailsPageBlockRelatedArticlesPageBlockMapPageCaptionPageCaptionPageBlockCollageVector < PageBlock >PageBlockUnsupportedPageBlockTitlePageBlockSubtitlePageBlockAuthorDatePageBlockHeaderPageBlockSubheaderPageBlockParagraphPageBlockPreformattedPageBlockFooterPageBlockDividerPageBlockAnchorPageBlockListPageBlockBlockquotePageBlockPullquotePageBlockPhotoPageBlockVideoPageBlockCoverPageBlockEmbedPageBlockEmbedPostPageBlockCollagePageBlockSlideshowPageBlockChannelPageBlockAudioPageBlockKickerPageBlockTablePageBlockOrderedListPageBlockDetailsPageBlockRelatedArticlesPageBlockMapPageCaptionPageCaptionPageBlockSlideshowVector < PageBlock >PageBlockUnsupportedPageBlockTitlePageBlockSubtitlePageBlockAuthorDatePageBlockHeaderPageBlockSubheaderPageBlockParagraphPageBlockPreformattedPageBlockFooterPageBlockDividerPageBlockAnchorPageBlockListPageBlockBlockquotePageBlockPullquotePageBlockPhotoPageBlockVideoPageBlockCoverPageBlockEmbedPageBlockEmbedPostPageBlockCollagePageBlockSlideshowPageBlockChannelPageBlockAudioPageBlockKickerPageBlockTablePageBlockOrderedListPageBlockDetailsPageBlockRelatedArticlesPageBlockMapPageCaptionPageCaptionPageBlockChannelChatChatEmptyChatChatForbiddenChannelChannelForbiddenPageBlockAudiolongPageCaptionPageCaptionPageBlockKickerRichTextTextEmptyTextPlainTextBoldTextItalicTextUnderlineTextStrikeTextFixedTextUrlTextEmailTextConcatTextSubscriptTextSuperscriptTextMarkedTextPhoneTextImageTextAnchorPageBlockTabletrue (optional)true (optional)RichTextTextEmptyTextPlainTextBoldTextItalicTextUnderlineTextStrikeTextFixedTextUrlTextEmailTextConcatTextSubscriptTextSuperscriptTextMarkedTextPhoneTextImageTextAnchorVector < PageTableRow >PageTableRowPageBlockOrderedListVector < PageListOrderedItem >PageListOrderedItemTextPageListOrderedItemBlocksPageBlockDetailstrue (optional)Vector < PageBlock >PageBlockUnsupportedPageBlockTitlePageBlockSubtitlePageBlockAuthorDatePageBlockHeaderPageBlockSubheaderPageBlockParagraphPageBlockPreformattedPageBlockFooterPageBlockDividerPageBlockAnchorPageBlockListPageBlockBlockquotePageBlockPullquotePageBlockPhotoPageBlockVideoPageBlockCoverPageBlockEmbedPageBlockEmbedPostPageBlockCollagePageBlockSlideshowPageBlockChannelPageBlockAudioPageBlockKickerPageBlockTablePageBlockOrderedListPageBlockDetailsPageBlockRelatedArticlesPageBlockMapRichTextTextEmptyTextPlainTextBoldTextItalicTextUnderlineTextStrikeTextFixedTextUrlTextEmailTextConcatTextSubscriptTextSuperscriptTextMarkedTextPhoneTextImageTextAnchorPageBlockRelatedArticlesRichTextTextEmptyTextPlainTextBoldTextItalicTextUnderlineTextStrikeTextFixedTextUrlTextEmailTextConcatTextSubscriptTextSuperscriptTextMarkedTextPhoneTextImageTextAnchorVector < PageRelatedArticle >PageRelatedArticlePageBlockMapGeoPointGeoPointEmptyGeoPointintintintPageCaptionPageCaptionVector < Photo >PhotoEmptylongPhototrue (optional)longlongbytesintVector < PhotoSize >PhotoSizeEmptyPhotoSizePhotoCachedSizePhotoStrippedSizePhotoSizeProgressivePhotoPathSizeVector < VideoSize > (optional)VideoSizeVideoSizeEmojiMarkupVideoSizeStickerMarkupintVector < Document >DocumentEmptylongDocumentlonglongbytesintstringlongVector < PhotoSize > (optional)PhotoSizeEmptyPhotoSizePhotoCachedSizePhotoStrippedSizePhotoSizeProgressivePhotoPathSizeVector < VideoSize > (optional)VideoSizeVideoSizeEmojiMarkupVideoSizeStickerMarkupintVector < DocumentAttribute >DocumentAttributeImageSizeDocumentAttributeAnimatedDocumentAttributeStickerDocumentAttributeVideoDocumentAttributeAudioDocumentAttributeFilenameDocumentAttributeHasStickersDocumentAttributeCustomEmojiint (optional)Vector < WebPageAttribute > (optional)Vector < Document > (optional)DocumentEmptylongDocumentlonglongbytesintstringlongVector < PhotoSize > (optional)PhotoSizeEmptyPhotoSizePhotoCachedSizePhotoStrippedSizePhotoSizeProgressivePhotoPathSizeVector < VideoSize > (optional)VideoSizeVideoSizeEmojiMarkupVideoSizeStickerMarkupintVector < DocumentAttribute >DocumentAttributeImageSizeDocumentAttributeAnimatedDocumentAttributeStickerDocumentAttributeVideoDocumentAttributeAudioDocumentAttributeFilenameDocumentAttributeHasStickersDocumentAttributeCustomEmojiThemeSettings (optional)ThemeSettingstrue (optional)BaseThemeBaseThemeClassicBaseThemeDayBaseThemeNightBaseThemeTintedBaseThemeArcticintint (optional)Vector < int > (optional)WallPaper (optional)WallPaperWallPaperNoFilePeerPeerUserlongPeerChatlongPeerChannellongintStoryItem (optional)StoryItemDeletedintStoryItemSkippedtrue (optional)true (optional)intintintStoryItemtrue (optional)true (optional)true (optional)true (optional)true (optional)true (optional)true (optional)true (optional)true (optional)intintPeer (optional)PeerUserPeerChatPeerChannelStoryFwdHeader (optional)StoryFwdHeaderintstring (optional)Vector < MessageEntity > (optional)MessageEntityUnknownMessageEntityMentionMessageEntityHashtagMessageEntityBotCommandMessageEntityUrlMessageEntityEmailMessageEntityBoldMessageEntityItalicMessageEntityCodeMessageEntityPreMessageEntityTextUrlMessageEntityMentionNameInputMessageEntityMentionNameMessageEntityPhoneMessageEntityCashtagMessageEntityUnderlineMessageEntityStrikeMessageEntityBankCardMessageEntitySpoilerMessageEntityCustomEmojiMessageEntityBlockquoteMessageEntityFormattedDateMessageMediaMessageMediaEmptyMessageMediaPhotoMessageMediaGeoMessageMediaContactMessageMediaUnsupportedMessageMediaDocumentMessageMediaWebPageMessageMediaVenueMessageMediaGameMessageMediaInvoiceMessageMediaGeoLiveMessageMediaPollMessageMediaDiceMessageMediaStoryMessageMediaGiveawayMessageMediaGiveawayResultsMessageMediaPaidMediaMessageMediaToDoMessageMediaVideoStreamVector < MediaArea > (optional)MediaAreaVenueInputMediaAreaVenueMediaAreaGeoPointMediaAreaSuggestedReactionMediaAreaChannelPostInputMediaAreaChannelPostMediaAreaUrlMediaAreaWeatherMediaAreaStarGiftVector < PrivacyRule > (optional)PrivacyValueAllowContactsPrivacyValueAllowAllPrivacyValueAllowUsersPrivacyValueDisallowContactsPrivacyValueDisallowAllPrivacyValueDisallowUsersPrivacyValueAllowCloseFriendsPrivacyValueAllowPremiumPrivacyValueAllowBotsPrivacyValueDisallowBotsStoryViews (optional)StoryViewsReaction (optional)ReactionEmptyReactionEmojiReactionCustomEmojiReactionPaidVector < int > (optional)true (optional)true (optional)Vector < Document >DocumentEmptylongDocumentlonglongbytesintstringlongVector < PhotoSize > (optional)PhotoSizeEmptyPhotoSizePhotoCachedSizePhotoStrippedSizePhotoSizeProgressivePhotoPathSizeVector < VideoSize > (optional)VideoSizeVideoSizeEmojiMarkupVideoSizeStickerMarkupintVector < DocumentAttribute >DocumentAttributeStickerDocumentAttributeVideoDocumentAttributeAudioStarGiftStarGifttrue (optional)true (optional)true (optional)true (optional)true (optional)true (optional)true (optional)longDocumentDocumentEmptyDocumentlongint (optional)int (optional)long (optional)longint (optional)int (optional)long (optional)long (optional)string (optional)Peer (optional)PeerUserPeerChatPeerChannelint (optional)int (optional)int (optional)string (optional)int (optional)int (optional)int (optional)StarGiftBackground (optional)StarGiftBackgroundStarGiftUniquetrue (optional)true (optional)true (optional)true (optional)true (optional)longlongstringstringintPeer (optional)PeerUserPeerChatPeerChannelstring (optional)string (optional)Vector < StarGiftAttribute >StarGiftAttributeModelStarGiftAttributePatternStarGiftAttributeBackdropStarGiftAttributeOriginalDetailsintintstring (optional)Vector < StarsAmount > (optional)StarsAmountStarsTonAmountPeer (optional)PeerUserPeerChatPeerChannellong (optional)string (optional)long (optional)Peer (optional)PeerUserPeerChatPeerChannelPeerColor (optional)PeerColorPeerColorCollectibleInputPeerColorCollectiblePeer (optional)PeerUserPeerChatPeerChannelint (optional)int (optional)Vector < Document >DocumentEmptylongDocumentlonglongbytesintstringlongVector < PhotoSize > (optional)PhotoSizeEmptyPhotoSizePhotoCachedSizePhotoStrippedSizePhotoSizeProgressivePhotoPathSizeVector < VideoSize > (optional)VideoSizeVideoSizeEmojiMarkupVideoSizeStickerMarkupintVector < DocumentAttribute >DocumentAttributeStickerDocumentAttributeVideoDocumentAttributeAudioStarGiftStarGifttrue (optional)true (optional)true (optional)true (optional)true (optional)true (optional)true (optional)longDocumentDocumentEmptyDocumentlongint (optional)int (optional)long (optional)longint (optional)int (optional)long (optional)long (optional)string (optional)Peer (optional)PeerUserPeerChatPeerChannelint (optional)int (optional)int (optional)string (optional)int (optional)int (optional)int (optional)StarGiftBackground (optional)StarGiftBackgroundStarGiftUniquetrue (optional)true (optional)true (optional)true (optional)true (optional)longlongstringstringintPeer (optional)PeerUserPeerChatPeerChannelstring (optional)string (optional)Vector < StarGiftAttribute >StarGiftAttributeModelStarGiftAttributePatternStarGiftAttributeBackdropStarGiftAttributeOriginalDetailsintintstring (optional)Vector < StarsAmount > (optional)StarsAmountStarsTonAmountPeer (optional)PeerUserPeerChatPeerChannellong (optional)string (optional)long (optional)Peer (optional)PeerUserPeerChatPeerChannelPeerColor (optional)PeerColorPeerColorCollectibleInputPeerColorCollectiblePeer (optional)PeerUserPeerChatPeerChannelint (optional)int (optional)intExample
WebPage(
id=0,
url="https://google.com",
display_url="text",
hash=0,
)