BotPreviewMedia

class pyrogram.raw.base.BotPreviewMedia

Represents a Main Mini App preview media, see here » for more info.

Constructors:

This base type has 1 constructor available.

BotPreviewMedia

Represents a Main Mini App preview media, see here » for more info.

Functions:

This object can be returned by 3 functions.

bots.AddPreviewMedia

Add a main mini app preview, see here » for more info.

bots.EditPreviewMedia

Edit a main mini app preview, see here » for more info.

bots.GetPreviewMedias

Fetch main mini app previews, see here » for more info.

TL Schema

botPreviewMedia#23e91ba3
date:int
media:MessageMedia

= BotPreviewMedia

Parameter Tree

BotPreviewMedia
├── dateint
└── mediaMessageMedia
│ ├── spoilertrue (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
│ └── ttl_secondsint (optional)
├── MessageMediaGeo
│ └── geoGeoPoint
│ ├── GeoPointEmpty
│ └── GeoPoint
│ ├── longdouble
│ ├── latdouble
│ ├── access_hashlong
│ └── accuracy_radiusint (optional)
│ ├── phone_numberstring
│ ├── first_namestring
│ ├── last_namestring
│ ├── vcardstring
│ └── user_idlong
│ ├── nopremiumtrue (optional)
│ ├── spoilertrue (optional)
│ ├── videotrue (optional)
│ ├── roundtrue (optional)
│ ├── voicetrue (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
│ ├── alt_documentsVector < Document > (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
│ ├── video_coverPhoto (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
│ ├── video_timestampint (optional)
│ └── ttl_secondsint (optional)
│ ├── 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
│ │ │ └── Photo
│ │ ├── embed_urlstring (optional)
│ │ ├── embed_typestring (optional)
│ │ ├── embed_widthint (optional)
│ │ ├── embed_heightint (optional)
│ │ ├── durationint (optional)
│ │ ├── authorstring (optional)
│ │ ├── documentDocument (optional)
│ │ │ ├── DocumentEmpty
│ │ │ └── Document
│ │ ├── cached_pagePage (optional)
│ │ │ └── Page
│ │ └── attributesVector < WebPageAttribute > (optional)
│ │ ├── WebPageAttributeTheme
│ │ ├── WebPageAttributeStory
│ │ ├── WebPageAttributeStickerSet
│ └── WebPageNotModified
│ └── cached_page_viewsint (optional)
│ ├── geoGeoPoint
│ │ ├── GeoPointEmpty
│ │ └── GeoPoint
│ │ ├── longdouble
│ │ ├── latdouble
│ │ ├── access_hashlong
│ │ └── accuracy_radiusint (optional)
│ ├── titlestring
│ ├── addressstring
│ ├── providerstring
│ ├── venue_idstring
│ └── venue_typestring
│ └── gameGame
│ └── Game
│ ├── idlong
│ ├── access_hashlong
│ ├── short_namestring
│ ├── titlestring
│ ├── descriptionstring
│ ├── photoPhoto
│ │ ├── PhotoEmpty
│ │ └── Photo
│ └── documentDocument (optional)
│ ├── DocumentEmpty
│ └── Document
│ ├── shipping_address_requestedtrue (optional)
│ ├── testtrue (optional)
│ ├── titlestring
│ ├── descriptionstring
│ ├── photoWebDocument (optional)
│ │ ├── WebDocument
│ │ │ ├── urlstring
│ │ │ ├── access_hashlong
│ │ │ ├── sizeint
│ │ │ ├── mime_typestring
│ │ │ └── attributesVector < DocumentAttribute >
│ │ │ ├── DocumentAttributeImageSize
│ │ │ ├── DocumentAttributeAnimated
│ │ │ ├── DocumentAttributeSticker
│ │ │ ├── DocumentAttributeVideo
│ │ │ ├── DocumentAttributeAudio
│ │ │ ├── DocumentAttributeFilename
│ │ │ ├── DocumentAttributeHasStickers
│ │ │ └── DocumentAttributeCustomEmoji
│ │ └── WebDocumentNoProxy
│ │ ├── urlstring
│ │ ├── sizeint
│ │ ├── mime_typestring
│ │ └── attributesVector < DocumentAttribute >
│ │ ├── DocumentAttributeImageSize
│ │ ├── DocumentAttributeAnimated
│ │ ├── DocumentAttributeSticker
│ │ ├── DocumentAttributeVideo
│ │ ├── DocumentAttributeAudio
│ │ ├── DocumentAttributeFilename
│ ├── receipt_msg_idint (optional)
│ ├── currencystring
│ ├── total_amountlong
│ ├── start_paramstring
│ └── extended_mediaMessageExtendedMedia (optional)
│ │ ├── wint (optional)
│ │ ├── hint (optional)
│ │ ├── thumbPhotoSize (optional)
│ │ │ ├── PhotoSizeEmpty
│ │ │ ├── PhotoSize
│ │ │ ├── PhotoCachedSize
│ │ │ ├── PhotoStrippedSize
│ │ │ ├── PhotoSizeProgressive
│ │ │ └── PhotoPathSize
│ │ └── video_durationint (optional)
│ └── MessageExtendedMedia
│ └── mediaMessageMedia
│ ├── MessageMediaEmpty
│ ├── MessageMediaPhoto
│ ├── MessageMediaGeo
│ ├── MessageMediaContact
│ ├── MessageMediaDocument
│ ├── MessageMediaWebPage
│ ├── MessageMediaVenue
│ ├── MessageMediaGame
│ ├── MessageMediaInvoice
│ ├── MessageMediaGeoLive
│ ├── MessageMediaPoll
│ ├── MessageMediaDice
│ ├── MessageMediaStory
│ ├── MessageMediaGiveaway
│ ├── MessageMediaPaidMedia
│ ├── MessageMediaToDo
│ ├── geoGeoPoint
│ │ ├── GeoPointEmpty
│ │ └── GeoPoint
│ │ ├── longdouble
│ │ ├── latdouble
│ │ ├── access_hashlong
│ │ └── accuracy_radiusint (optional)
│ ├── headingint (optional)
│ ├── periodint
│ └── proximity_notification_radiusint (optional)
│ ├── pollPoll
│ │ └── Poll
│ │ ├── idlong
│ │ ├── closedtrue (optional)
│ │ ├── public_voterstrue (optional)
│ │ ├── multiple_choicetrue (optional)
│ │ ├── quiztrue (optional)
│ │ ├── questionTextWithEntities
│ │ │ └── TextWithEntities
│ │ ├── answersVector < PollAnswer >
│ │ │ └── PollAnswer
│ │ ├── close_periodint (optional)
│ │ └── close_dateint (optional)
│ └── resultsPollResults
│ └── PollResults
│ ├── mintrue (optional)
│ ├── resultsVector < PollAnswerVoters > (optional)
│ │ └── PollAnswerVoters
│ ├── total_votersint (optional)
│ ├── recent_votersVector < Peer > (optional)
│ │ ├── PeerUser
│ │ ├── PeerChat
│ │ └── PeerChannel
│ ├── solutionstring (optional)
│ └── solution_entitiesVector < MessageEntity > (optional)
│ ├── MessageEntityUnknown
│ ├── MessageEntityMention
│ ├── MessageEntityHashtag
│ ├── MessageEntityUrl
│ ├── MessageEntityEmail
│ ├── MessageEntityBold
│ ├── MessageEntityItalic
│ ├── MessageEntityCode
│ ├── MessageEntityPre
│ ├── MessageEntityTextUrl
│ ├── MessageEntityPhone
│ ├── MessageEntityCashtag
│ ├── MessageEntityStrike
│ ├── MessageEntityBankCard
│ ├── MessageEntitySpoiler
│ ├── valueint
│ ├── emoticonstring
│ └── game_outcomemessages.EmojiGameOutcome (optional)
│ ├── seedbytes
│ ├── stake_ton_amountlong
│ └── ton_amountlong
│ ├── via_mentiontrue (optional)
│ ├── peerPeer
│ │ ├── PeerUser
│ │ │ └── user_idlong
│ │ ├── PeerChat
│ │ │ └── chat_idlong
│ │ └── PeerChannel
│ │ └── channel_idlong
│ ├── idint
│ └── storyStoryItem (optional)
│ ├── StoryItemDeleted
│ │ └── idint
│ ├── StoryItemSkipped
│ │ ├── close_friendstrue (optional)
│ │ ├── livetrue (optional)
│ │ ├── idint
│ │ ├── dateint
│ │ └── expire_dateint
│ └── StoryItem
│ ├── pinnedtrue (optional)
│ ├── publictrue (optional)
│ ├── close_friendstrue (optional)
│ ├── mintrue (optional)
│ ├── noforwardstrue (optional)
│ ├── editedtrue (optional)
│ ├── contactstrue (optional)
│ ├── selected_contactstrue (optional)
│ ├── outtrue (optional)
│ ├── idint
│ ├── dateint
│ ├── from_idPeer (optional)
│ │ ├── PeerUser
│ │ ├── PeerChat
│ │ └── PeerChannel
│ ├── fwd_fromStoryFwdHeader (optional)
│ │ └── StoryFwdHeader
│ ├── expire_dateint
│ ├── captionstring (optional)
│ ├── entitiesVector < MessageEntity > (optional)
│ │ ├── MessageEntityUnknown
│ │ ├── MessageEntityMention
│ │ ├── MessageEntityHashtag
│ │ ├── MessageEntityBotCommand
│ │ ├── MessageEntityUrl
│ │ ├── MessageEntityEmail
│ │ ├── MessageEntityBold
│ │ ├── MessageEntityItalic
│ │ ├── MessageEntityCode
│ │ ├── MessageEntityPre
│ │ ├── MessageEntityTextUrl
│ │ ├── MessageEntityMentionName
│ │ ├── MessageEntityPhone
│ │ ├── MessageEntityCashtag
│ │ ├── MessageEntityUnderline
│ │ ├── MessageEntityStrike
│ │ ├── MessageEntityBankCard
│ │ ├── MessageEntitySpoiler
│ │ ├── MessageEntityCustomEmoji
│ │ ├── MessageEntityBlockquote
│ │ └── MessageEntityFormattedDate
│ ├── mediaMessageMedia
│ │ ├── MessageMediaEmpty
│ │ ├── MessageMediaPhoto
│ │ ├── MessageMediaGeo
│ │ ├── MessageMediaContact
│ │ ├── MessageMediaUnsupported
│ │ ├── MessageMediaDocument
│ │ ├── MessageMediaWebPage
│ │ ├── MessageMediaVenue
│ │ ├── MessageMediaGame
│ │ ├── MessageMediaInvoice
│ │ ├── MessageMediaGeoLive
│ │ ├── MessageMediaPoll
│ │ ├── MessageMediaDice
│ │ ├── MessageMediaStory
│ │ ├── MessageMediaGiveaway
│ │ ├── MessageMediaGiveawayResults
│ │ ├── MessageMediaPaidMedia
│ │ ├── MessageMediaToDo
│ │ └── MessageMediaVideoStream
│ ├── media_areasVector < MediaArea > (optional)
│ │ ├── MediaAreaVenue
│ │ ├── InputMediaAreaVenue
│ │ ├── MediaAreaGeoPoint
│ │ ├── MediaAreaSuggestedReaction
│ │ ├── MediaAreaChannelPost
│ │ ├── InputMediaAreaChannelPost
│ │ ├── MediaAreaUrl
│ │ ├── MediaAreaWeather
│ │ └── MediaAreaStarGift
│ ├── privacyVector < PrivacyRule > (optional)
│ │ ├── PrivacyValueAllowContacts
│ │ ├── PrivacyValueAllowAll
│ │ ├── PrivacyValueAllowUsers
│ │ ├── PrivacyValueDisallowAll
│ │ ├── PrivacyValueDisallowUsers
│ │ ├── PrivacyValueAllowPremium
│ │ ├── PrivacyValueAllowBots
│ │ └── PrivacyValueDisallowBots
│ ├── viewsStoryViews (optional)
│ │ └── StoryViews
│ ├── sent_reactionReaction (optional)
│ │ ├── ReactionEmpty
│ │ ├── ReactionEmoji
│ │ ├── ReactionCustomEmoji
│ │ └── ReactionPaid
│ └── albumsVector < int > (optional)
│ ├── only_new_subscriberstrue (optional)
│ ├── winners_are_visibletrue (optional)
│ ├── channelsVector < long >
│ ├── countries_iso2Vector < string > (optional)
│ ├── prize_descriptionstring (optional)
│ ├── quantityint
│ ├── monthsint (optional)
│ ├── starslong (optional)
│ └── until_dateint
│ ├── only_new_subscriberstrue (optional)
│ ├── refundedtrue (optional)
│ ├── channel_idlong
│ ├── additional_peers_countint (optional)
│ ├── launch_msg_idint
│ ├── winners_countint
│ ├── unclaimed_countint
│ ├── winnersVector < long >
│ ├── monthsint (optional)
│ ├── starslong (optional)
│ ├── prize_descriptionstring (optional)
│ └── until_dateint
│ ├── stars_amountlong
│ └── extended_mediaVector < MessageExtendedMedia >
│ │ ├── wint (optional)
│ │ ├── hint (optional)
│ │ ├── thumbPhotoSize (optional)
│ │ │ ├── PhotoSizeEmpty
│ │ │ ├── PhotoSize
│ │ │ ├── PhotoCachedSize
│ │ │ ├── PhotoStrippedSize
│ │ │ ├── PhotoSizeProgressive
│ │ │ └── PhotoPathSize
│ │ └── video_durationint (optional)
│ └── MessageExtendedMedia
│ └── mediaMessageMedia
│ ├── MessageMediaEmpty
│ ├── MessageMediaPhoto
│ ├── MessageMediaGeo
│ ├── MessageMediaContact
│ ├── MessageMediaDocument
│ ├── MessageMediaWebPage
│ ├── MessageMediaVenue
│ ├── MessageMediaGame
│ ├── MessageMediaInvoice
│ ├── MessageMediaGeoLive
│ ├── MessageMediaPoll
│ ├── MessageMediaDice
│ ├── MessageMediaStory
│ ├── MessageMediaGiveaway
│ ├── MessageMediaPaidMedia
│ ├── MessageMediaToDo
│ ├── todoTodoList
│ │ └── TodoList
│ │ ├── others_can_appendtrue (optional)
│ │ ├── others_can_completetrue (optional)
│ │ ├── titleTextWithEntities
│ │ │ └── TextWithEntities
│ │ └── listVector < TodoItem >
│ │ └── TodoItem
│ └── completionsVector < TodoCompletion > (optional)
│ └── TodoCompletion
│ ├── idint
│ ├── completed_byPeer
│ │ ├── PeerUser
│ │ ├── PeerChat
│ │ └── PeerChannel
│ └── dateint
├── rtmp_streamtrue (optional)
└── callInputGroupCall
├── InputGroupCall
│ ├── idlong
│ └── access_hashlong
│ └── slugstring
└── msg_idint

Example

BotPreviewMedia(
    date=0,
    media=MessageMediaEmpty(),
)