payments.StarGiftUpgradePreview

class pyrogram.raw.types.payments.StarGiftUpgradePreview

A preview of the possible attributes (chosen randomly) a gift » can receive after upgrading it to a collectible gift », see here » for more info.

Constructor of StarGiftUpgradePreview.

Details:
  • Layer: 223

  • ID: 3DE1DFED

Parameters:
Functions:

This object can be returned by 1 function.

payments.GetStarGiftUpgradePreview

Obtain a preview of the possible attributes (chosen randomly) a gift » can receive after upgrading it to a collectible gift », see here » for more info.

TL Schema

payments.starGiftUpgradePreview#3de1dfed
sample_attributes:Vector<StarGiftAttribute>
prices:Vector<StarGiftUpgradePrice>
next_prices:Vector<StarGiftUpgradePrice>

= payments.StarGiftUpgradePreview

Parameter Tree

StarGiftUpgradePreview
├── sample_attributesVector < StarGiftAttribute >
│ │ ├── craftedtrue (optional)
│ │ ├── namestring
│ │ ├── documentDocument
│ │ │ ├── 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
│ │ │ ├── DocumentAttributeHasStickers
│ │ │ └── DocumentAttributeCustomEmoji
│ │ └── rarityStarGiftAttributeRarity
│ │ ├── StarGiftAttributeRarity
│ │ │ └── permilleint
│ │ ├── StarGiftAttributeRarityRare
│ │ ├── StarGiftAttributeRarityEpic
│ │ ├── namestring
│ │ ├── documentDocument
│ │ │ ├── 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
│ │ │ ├── DocumentAttributeHasStickers
│ │ │ └── DocumentAttributeCustomEmoji
│ │ └── rarityStarGiftAttributeRarity
│ │ ├── StarGiftAttributeRarity
│ │ │ └── permilleint
│ │ ├── StarGiftAttributeRarityRare
│ │ ├── StarGiftAttributeRarityEpic
│ │ ├── namestring
│ │ ├── backdrop_idint
│ │ ├── center_colorint
│ │ ├── edge_colorint
│ │ ├── pattern_colorint
│ │ ├── text_colorint
│ │ └── rarityStarGiftAttributeRarity
│ │ ├── StarGiftAttributeRarity
│ │ │ └── permilleint
│ │ ├── StarGiftAttributeRarityRare
│ │ ├── StarGiftAttributeRarityEpic
│ ├── sender_idPeer (optional)
│ │ ├── PeerUser
│ │ │ └── user_idlong
│ │ ├── PeerChat
│ │ │ └── chat_idlong
│ │ └── PeerChannel
│ │ └── channel_idlong
│ ├── recipient_idPeer
│ │ ├── PeerUser
│ │ │ └── user_idlong
│ │ ├── PeerChat
│ │ │ └── chat_idlong
│ │ └── PeerChannel
│ │ └── channel_idlong
│ ├── dateint
│ └── messageTextWithEntities (optional)
│ └── TextWithEntities
│ ├── textstring
│ └── entitiesVector < MessageEntity >
│ ├── MessageEntityUnknown
│ ├── MessageEntityMention
│ ├── MessageEntityHashtag
│ ├── MessageEntityUrl
│ ├── MessageEntityEmail
│ ├── MessageEntityBold
│ ├── MessageEntityItalic
│ ├── MessageEntityCode
│ ├── MessageEntityPre
│ ├── MessageEntityTextUrl
│ ├── MessageEntityPhone
│ ├── MessageEntityCashtag
│ ├── MessageEntityStrike
│ ├── MessageEntityBankCard
│ ├── MessageEntitySpoiler
├── pricesVector < StarGiftUpgradePrice >
│ └── StarGiftUpgradePrice
│ ├── dateint
│ └── upgrade_starslong
└── next_pricesVector < StarGiftUpgradePrice >
├── dateint
└── upgrade_starslong

Example

StarGiftUpgradePreview(
    sample_attributes=[
            StarGiftAttributeModel(
                name="text",
                document=DocumentEmpty(id=0),
                rarity=StarGiftAttributeRarity(permille=0)
            )
        ],
    prices=[
            StarGiftUpgradePrice(
                date=0,
                upgrade_stars=0
            )
        ],
    next_prices=[
            StarGiftUpgradePrice(
                date=0,
                upgrade_stars=0
            )
        ],
)