MessageMediaWebPage

class pyrogram.raw.types.MessageMediaWebPage

Preview of webpage

Constructor of MessageMedia.

Details:
  • Layer: 223

  • ID: DDF10C3B

Parameters:
  • webpage (WebPage) – Webpage preview

  • force_large_media (bool, optional) – If set, specifies that a large media preview should be used.

  • force_small_media (bool, optional) – If set, specifies that a small media preview should be used.

  • manual (bool, optional) – If set, indicates that the URL used for the webpage preview was specified manually using inputMediaWebPage, and may not be related to any of the URLs specified in the message.

  • safe (bool, optional) – If set, the webpage can be opened directly without user confirmation; otherwise, user confirmation is required, showing the exact URL that will be opened.

Functions:

This object can be returned by 2 functions.

messages.UploadMedia

Upload a file and associate it to a chat (without actually sending it to the chat)

messages.UploadImportedMedia

Upload a media file associated with an imported chat, click here for more info ».

TL Schema

messageMediaWebPage#ddf10c3b
flags:#
force_large_media:flags.0?true
force_small_media:flags.1?true
manual:flags.3?true
safe:flags.4?true
webpage:WebPage

= MessageMedia

Parameter Tree

MessageMediaWebPage
├── force_large_mediatrue (optional)
├── force_small_mediatrue (optional)
├── manualtrue (optional)
├── safetrue (optional)
└── webpageWebPage
├── WebPageEmpty
│ ├── idlong
│ └── urlstring (optional)
├── WebPagePending
│ ├── idlong
│ ├── urlstring (optional)
│ └── dateint
├── WebPage
│ ├── has_large_mediatrue (optional)
│ ├── video_cover_phototrue (optional)
│ ├── idlong
│ ├── urlstring
│ ├── display_urlstring
│ ├── hashint
│ ├── typestring (optional)
│ ├── site_namestring (optional)
│ ├── titlestring (optional)
│ ├── descriptionstring (optional)
│ ├── photoPhoto (optional)
│ │ ├── PhotoEmpty
│ │ │ └── idlong
│ │ └── Photo
│ │ ├── has_stickerstrue (optional)
│ │ ├── idlong
│ │ ├── access_hashlong
│ │ ├── file_referencebytes
│ │ ├── dateint
│ │ ├── sizesVector < PhotoSize >
│ │ │ ├── PhotoSizeEmpty
│ │ │ ├── PhotoSize
│ │ │ ├── PhotoCachedSize
│ │ │ ├── PhotoStrippedSize
│ │ │ ├── PhotoSizeProgressive
│ │ │ └── PhotoPathSize
│ │ ├── video_sizesVector < VideoSize > (optional)
│ │ │ ├── VideoSize
│ │ │ ├── VideoSizeEmojiMarkup
│ │ │ └── VideoSizeStickerMarkup
│ │ └── dc_idint
│ ├── embed_urlstring (optional)
│ ├── embed_typestring (optional)
│ ├── embed_widthint (optional)
│ ├── embed_heightint (optional)
│ ├── durationint (optional)
│ ├── authorstring (optional)
│ ├── documentDocument (optional)
│ │ ├── DocumentEmpty
│ │ │ └── idlong
│ │ └── Document
│ │ ├── idlong
│ │ ├── access_hashlong
│ │ ├── file_referencebytes
│ │ ├── dateint
│ │ ├── mime_typestring
│ │ ├── sizelong
│ │ ├── thumbsVector < PhotoSize > (optional)
│ │ │ ├── PhotoSizeEmpty
│ │ │ ├── PhotoSize
│ │ │ ├── PhotoCachedSize
│ │ │ ├── PhotoStrippedSize
│ │ │ ├── PhotoSizeProgressive
│ │ │ └── PhotoPathSize
│ │ ├── video_thumbsVector < VideoSize > (optional)
│ │ │ ├── VideoSize
│ │ │ ├── VideoSizeEmojiMarkup
│ │ │ └── VideoSizeStickerMarkup
│ │ ├── dc_idint
│ │ └── attributesVector < DocumentAttribute >
│ │ ├── DocumentAttributeImageSize
│ │ ├── DocumentAttributeAnimated
│ │ ├── DocumentAttributeSticker
│ │ ├── DocumentAttributeVideo
│ │ ├── DocumentAttributeAudio
│ │ ├── DocumentAttributeFilename
│ ├── cached_pagePage (optional)
│ │ └── Page
│ │ ├── parttrue (optional)
│ │ ├── rtltrue (optional)
│ │ ├── v2true (optional)
│ │ ├── urlstring
│ │ ├── blocksVector < PageBlock >
│ │ │ ├── PageBlockUnsupported
│ │ │ ├── PageBlockTitle
│ │ │ ├── PageBlockSubtitle
│ │ │ ├── PageBlockAuthorDate
│ │ │ ├── PageBlockHeader
│ │ │ ├── PageBlockSubheader
│ │ │ ├── PageBlockParagraph
│ │ │ ├── PageBlockPreformatted
│ │ │ ├── PageBlockFooter
│ │ │ ├── PageBlockDivider
│ │ │ ├── PageBlockAnchor
│ │ │ ├── PageBlockList
│ │ │ ├── PageBlockBlockquote
│ │ │ ├── PageBlockPullquote
│ │ │ ├── PageBlockPhoto
│ │ │ ├── PageBlockVideo
│ │ │ ├── PageBlockCover
│ │ │ ├── PageBlockEmbed
│ │ │ ├── PageBlockEmbedPost
│ │ │ ├── PageBlockCollage
│ │ │ ├── PageBlockSlideshow
│ │ │ ├── PageBlockChannel
│ │ │ ├── PageBlockAudio
│ │ │ ├── PageBlockKicker
│ │ │ ├── PageBlockTable
│ │ │ ├── PageBlockOrderedList
│ │ │ ├── PageBlockDetails
│ │ │ ├── PageBlockRelatedArticles
│ │ │ └── PageBlockMap
│ │ ├── photosVector < Photo >
│ │ │ ├── PhotoEmpty
│ │ │ └── Photo
│ │ ├── documentsVector < Document >
│ │ │ ├── DocumentEmpty
│ │ │ └── Document
│ │ └── viewsint (optional)
│ └── attributesVector < WebPageAttribute > (optional)
│ ├── WebPageAttributeTheme
│ │ ├── documentsVector < Document > (optional)
│ │ │ ├── DocumentEmpty
│ │ │ └── Document
│ │ └── settingsThemeSettings (optional)
│ │ └── ThemeSettings
│ ├── WebPageAttributeStory
│ │ ├── peerPeer
│ │ │ ├── PeerUser
│ │ │ ├── PeerChat
│ │ │ └── PeerChannel
│ │ ├── idint
│ │ └── storyStoryItem (optional)
│ │ ├── StoryItemDeleted
│ │ ├── StoryItemSkipped
│ │ └── StoryItem
│ │ ├── emojistrue (optional)
│ │ ├── text_colortrue (optional)
│ │ └── stickersVector < Document >
│ │ ├── DocumentEmpty
│ │ └── Document
│ │ └── giftStarGift
│ │ ├── StarGift
│ │ └── StarGiftUnique
│ │ └── iconsVector < Document >
│ │ ├── DocumentEmpty
│ │ └── Document
│ ├── giftStarGift
│ │ ├── StarGift
│ │ └── StarGiftUnique
│ └── end_dateint
└── cached_page_viewsint (optional)

Example

MessageMediaWebPage(
    webpage=WebPageEmpty(id=0),
)