payments.StarGiftUpgradePreview

class pyrogram.raw.base.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.

Constructors:

This base type has 1 constructor available.

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.

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_attributes → Vector < StarGiftAttribute >
│ │ ├── crafted → true (optional)
│ │ ├── name → string
│ │ ├── document → Document
│ │ │ ├── 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
│ │ └── rarity → StarGiftAttributeRarity
│ │ ├── StarGiftAttributeRarity
│ │ │ └── permille → int
│ │ ├── StarGiftAttributeRarityRare
│ │ ├── StarGiftAttributeRarityEpic
│ │ ├── name → string
│ │ ├── document → Document
│ │ │ ├── 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
│ │ └── rarity → StarGiftAttributeRarity
│ │ ├── StarGiftAttributeRarity
│ │ │ └── permille → int
│ │ ├── StarGiftAttributeRarityRare
│ │ ├── StarGiftAttributeRarityEpic
│ │ ├── name → string
│ │ ├── backdrop_id → int
│ │ ├── center_color → int
│ │ ├── edge_color → int
│ │ ├── pattern_color → int
│ │ ├── text_color → int
│ │ └── rarity → StarGiftAttributeRarity
│ │ ├── StarGiftAttributeRarity
│ │ │ └── permille → int
│ │ ├── StarGiftAttributeRarityRare
│ │ ├── StarGiftAttributeRarityEpic
│ ├── sender_id → Peer (optional)
│ │ ├── PeerUser
│ │ │ └── user_id → long
│ │ ├── PeerChat
│ │ │ └── chat_id → long
│ │ └── PeerChannel
│ │ └── channel_id → long
│ ├── recipient_id → Peer
│ │ ├── PeerUser
│ │ │ └── user_id → long
│ │ ├── PeerChat
│ │ │ └── chat_id → long
│ │ └── PeerChannel
│ │ └── channel_id → long
│ ├── date → int
│ └── message → TextWithEntities (optional)
│ └── TextWithEntities
│ ├── text → string
│ └── entities → Vector < MessageEntity >
│ ├── MessageEntityUnknown
│ ├── MessageEntityMention
│ ├── MessageEntityHashtag
│ ├── MessageEntityUrl
│ ├── MessageEntityEmail
│ ├── MessageEntityBold
│ ├── MessageEntityItalic
│ ├── MessageEntityCode
│ ├── MessageEntityPre
│ ├── MessageEntityTextUrl
│ ├── MessageEntityPhone
│ ├── MessageEntityCashtag
│ ├── MessageEntityStrike
│ ├── MessageEntityBankCard
│ ├── MessageEntitySpoiler
├── prices → Vector < StarGiftUpgradePrice >
│ └── StarGiftUpgradePrice
│ ├── date → int
│ └── upgrade_stars → long
└── next_prices → Vector < StarGiftUpgradePrice >
├── date → int
└── upgrade_stars → long

Example

StarGiftUpgradePreview(
    sample_attributes=[
            StarGiftAttributeModel(
                crafted=None,
                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
            )
        ],
)