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.
Represents a Main Mini App preview media, see here » for more info.
- Functions:
This object can be returned by 3 functions.
Add a main mini app preview, see here » for more info.
Edit a main mini app preview, see here » for more info.
Fetch main mini app previews, see here » for more info.
TL Schema
botPreviewMedia#23e91ba3
date:int
media:MessageMedia
= BotPreviewMedia
Parameter Tree
BotPreviewMedia
├── date →
int└── media →
MessageMedia│ ├── 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)│ ├── phone_number →
string│ ├── first_name →
string│ ├── last_name →
string│ ├── vcard →
string│ └── user_id →
long│ ├── 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)│ ├── 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│ │ └──
WebPageAttributeStarGiftAuction│ └──
WebPageNotModified│ └── cached_page_views →
int (optional)│ ├── 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│ ├── 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)│ │ ├── 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│ ├──
MessageMediaPaidMedia│ ├──
MessageMediaToDo│ └──
MessageMediaVideoStream│ ├── 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│ ├──
MessageEntityPhone│ ├──
MessageEntityCashtag│ ├──
MessageEntityUnderline│ ├──
MessageEntityStrike│ ├──
MessageEntityBankCard│ ├──
MessageEntitySpoiler│ ├──
MessageEntityCustomEmoji│ ├──
MessageEntityBlockquote├──
MessageMediaDice│ ├── value →
int│ ├── emoticon →
string│ └── game_outcome →
messages.EmojiGameOutcome (optional)│ ├── seed →
bytes│ ├── stake_ton_amount →
long│ └── ton_amount →
long│ ├── 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│ │ ├──
PrivacyValueAllowCloseFriends│ │ ├──
PrivacyValueAllowPremium│ │ ├──
PrivacyValueAllowBots│ │ └──
PrivacyValueDisallowBots│ ├── views →
StoryViews (optional)│ │ └──
StoryViews│ ├── sent_reaction →
Reaction (optional)│ │ ├──
ReactionEmpty│ │ ├──
ReactionEmoji│ │ ├──
ReactionCustomEmoji│ │ └──
ReactionPaid│ └── albums →
Vector < int > (optional)│ ├── 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│ ├── stars_amount →
long│ └── extended_media →
Vector < MessageExtendedMedia >│ │ ├── 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│ ├──
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├── rtmp_stream →
true (optional)└── call →
InputGroupCallExample
BotPreviewMedia(
date=0,
media=MessageMediaEmpty(),
)