bots.PreviewInfo

class pyrogram.raw.types.bots.PreviewInfo

Contains info about Main Mini App previews, see here » for more info.

Constructor of PreviewInfo.

Details:
  • Layer: 223

  • ID: CA71D64

Parameters:
  • media (List of BotPreviewMedia) – All preview medias for the language code passed to bots.getPreviewInfo.

  • lang_codes (List of str) – All available language codes for which preview medias were uploaded (regardless of the language code passed to bots.getPreviewInfo).

Functions:

This object can be returned by 1 function.

bots.GetPreviewInfo

Bot owners only, fetch main mini app preview information, see here » for more info.

TL Schema

bots.previewInfo#ca71d64
media:Vector<BotPreviewMedia>
lang_codes:Vector<string>

= bots.PreviewInfo

Parameter Tree

PreviewInfo
├── mediaVector < BotPreviewMedia >
│ └── BotPreviewMedia
│ ├── dateint
│ └── mediaMessageMedia
│ ├── MessageMediaEmpty
│ ├── MessageMediaPhoto
│ │ ├── spoilertrue (optional)
│ │ ├── photoPhoto (optional)
│ │ │ ├── PhotoEmpty
│ │ │ └── Photo
│ │ └── ttl_secondsint (optional)
│ ├── MessageMediaGeo
│ │ └── geoGeoPoint
│ │ ├── GeoPointEmpty
│ │ └── GeoPoint
│ ├── MessageMediaContact
│ │ ├── phone_numberstring
│ │ ├── first_namestring
│ │ ├── last_namestring
│ │ ├── vcardstring
│ │ └── user_idlong
│ ├── MessageMediaDocument
│ │ ├── nopremiumtrue (optional)
│ │ ├── spoilertrue (optional)
│ │ ├── videotrue (optional)
│ │ ├── roundtrue (optional)
│ │ ├── voicetrue (optional)
│ │ ├── documentDocument (optional)
│ │ │ ├── DocumentEmpty
│ │ │ └── Document
│ │ ├── alt_documentsVector < Document > (optional)
│ │ │ ├── DocumentEmpty
│ │ │ └── Document
│ │ ├── video_coverPhoto (optional)
│ │ │ ├── PhotoEmpty
│ │ │ └── Photo
│ │ ├── video_timestampint (optional)
│ │ └── ttl_secondsint (optional)
│ ├── MessageMediaWebPage
│ │ ├── force_large_mediatrue (optional)
│ │ ├── force_small_mediatrue (optional)
│ │ ├── manualtrue (optional)
│ │ ├── safetrue (optional)
│ │ └── webpageWebPage
│ │ ├── WebPageEmpty
│ │ ├── WebPagePending
│ │ ├── WebPage
│ │ └── WebPageNotModified
│ ├── MessageMediaVenue
│ │ ├── geoGeoPoint
│ │ │ ├── GeoPointEmpty
│ │ │ └── GeoPoint
│ │ ├── titlestring
│ │ ├── addressstring
│ │ ├── providerstring
│ │ ├── venue_idstring
│ │ └── venue_typestring
│ ├── MessageMediaGame
│ │ └── gameGame
│ │ └── Game
│ ├── MessageMediaInvoice
│ │ ├── shipping_address_requestedtrue (optional)
│ │ ├── testtrue (optional)
│ │ ├── titlestring
│ │ ├── descriptionstring
│ │ ├── photoWebDocument (optional)
│ │ │ ├── WebDocument
│ │ │ └── WebDocumentNoProxy
│ │ ├── receipt_msg_idint (optional)
│ │ ├── currencystring
│ │ ├── total_amountlong
│ │ ├── start_paramstring
│ │ └── extended_mediaMessageExtendedMedia (optional)
│ │ ├── MessageExtendedMediaPreview
│ │ └── MessageExtendedMedia
│ ├── MessageMediaGeoLive
│ │ ├── geoGeoPoint
│ │ │ ├── GeoPointEmpty
│ │ │ └── GeoPoint
│ │ ├── headingint (optional)
│ │ ├── periodint
│ │ └── proximity_notification_radiusint (optional)
│ ├── MessageMediaPoll
│ │ ├── pollPoll
│ │ │ └── Poll
│ │ └── resultsPollResults
│ │ └── PollResults
│ ├── MessageMediaDice
│ │ ├── valueint
│ │ ├── emoticonstring
│ │ └── game_outcomemessages.EmojiGameOutcome (optional)
│ │ └── messages.EmojiGameOutcome
│ ├── MessageMediaStory
│ │ ├── via_mentiontrue (optional)
│ │ ├── peerPeer
│ │ │ ├── PeerUser
│ │ │ ├── PeerChat
│ │ │ └── PeerChannel
│ │ ├── idint
│ │ └── storyStoryItem (optional)
│ │ ├── StoryItemDeleted
│ │ ├── StoryItemSkipped
│ │ └── StoryItem
│ ├── MessageMediaGiveaway
│ │ ├── 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
│ ├── MessageMediaPaidMedia
│ │ ├── stars_amountlong
│ │ └── extended_mediaVector < MessageExtendedMedia >
│ │ ├── MessageExtendedMediaPreview
│ │ └── MessageExtendedMedia
│ ├── MessageMediaToDo
│ │ ├── todoTodoList
│ │ │ └── TodoList
│ │ └── completionsVector < TodoCompletion > (optional)
│ │ └── TodoCompletion
│ ├── rtmp_streamtrue (optional)
│ └── callInputGroupCall
│ ├── InputGroupCall
│ ├── InputGroupCallSlug
└── lang_codesVector < string >

Example

PreviewInfo(
    media=[
            BotPreviewMedia(
                date=0,
                media=MessageMediaEmpty()
            )
        ],
    lang_codes=["text"],
)