MessageMediaWebPage
- class pyrogram.raw.types.MessageMediaWebPage
Preview of webpage
Constructor of
MessageMedia.- Details:
Layer:
223ID:
DDF10C3B
- Parameters:
webpage (
WebPage) – Webpage previewforce_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.
Upload a file and associate it to a chat (without actually sending it to the chat)
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
true (optional)true (optional)true (optional)true (optional)WebPageWebPageEmptylongstring (optional)WebPagePendinglongstring (optional)intWebPagetrue (optional)true (optional)longstringstringintstring (optional)string (optional)string (optional)string (optional)Photo (optional)PhotoEmptylongPhototrue (optional)longlongbytesintVector < PhotoSize >PhotoSizeEmptyPhotoSizePhotoCachedSizePhotoStrippedSizePhotoSizeProgressivePhotoPathSizeVector < VideoSize > (optional)VideoSizeVideoSizeEmojiMarkupVideoSizeStickerMarkupintstring (optional)string (optional)int (optional)int (optional)int (optional)string (optional)Document (optional)DocumentEmptylongDocumentlonglongbytesintstringlongVector < PhotoSize > (optional)PhotoSizeEmptyPhotoSizePhotoCachedSizePhotoStrippedSizePhotoSizeProgressivePhotoPathSizeVector < VideoSize > (optional)VideoSizeVideoSizeEmojiMarkupVideoSizeStickerMarkupintVector < DocumentAttribute >DocumentAttributeImageSizeDocumentAttributeAnimatedDocumentAttributeStickerDocumentAttributeVideoDocumentAttributeAudioDocumentAttributeFilenameDocumentAttributeHasStickersDocumentAttributeCustomEmojiPage (optional)Pagetrue (optional)true (optional)true (optional)stringVector < PageBlock >PageBlockUnsupportedPageBlockTitlePageBlockSubtitlePageBlockAuthorDatePageBlockHeaderPageBlockSubheaderPageBlockParagraphPageBlockPreformattedPageBlockFooterPageBlockDividerPageBlockAnchorPageBlockListPageBlockBlockquotePageBlockPullquotePageBlockPhotoPageBlockVideoPageBlockCoverPageBlockEmbedPageBlockEmbedPostPageBlockCollagePageBlockSlideshowPageBlockChannelPageBlockAudioPageBlockKickerPageBlockTablePageBlockOrderedListPageBlockDetailsPageBlockRelatedArticlesPageBlockMapVector < Photo >PhotoEmptyPhotoVector < Document >DocumentEmptyDocumentint (optional)Vector < WebPageAttribute > (optional)WebPageAttributeThemeVector < Document > (optional)DocumentEmptyDocumentThemeSettings (optional)ThemeSettingsWebPageAttributeStoryPeerPeerUserPeerChatPeerChannelintStoryItem (optional)StoryItemDeletedStoryItemSkippedStoryItemtrue (optional)true (optional)Vector < Document >DocumentEmptyDocumentStarGiftStarGiftStarGiftUniqueVector < Document >DocumentEmptyDocumentStarGiftStarGiftStarGiftUniqueintint (optional)Example
MessageMediaWebPage(
webpage=WebPageEmpty(id=0),
)