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.
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.
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 >│ ├──
StarGiftAttributeModel│ │ ├── 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│ │ ├──
StarGiftAttributeRarityUncommon│ │ ├──
StarGiftAttributeRarityRare│ │ ├──
StarGiftAttributeRarityEpic│ │ └──
StarGiftAttributeRarityLegendary│ ├──
StarGiftAttributePattern│ │ ├── 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│ │ ├──
StarGiftAttributeRarityUncommon│ │ ├──
StarGiftAttributeRarityRare│ │ ├──
StarGiftAttributeRarityEpic│ │ └──
StarGiftAttributeRarityLegendary│ │ ├── name →
string│ │ ├── backdrop_id →
int│ │ ├── center_color →
int│ │ ├── edge_color →
int│ │ ├── pattern_color →
int│ │ ├── text_color →
int│ │ └── rarity →
StarGiftAttributeRarity│ │ ├──
StarGiftAttributeRarity│ │ │ └── permille →
int│ │ ├──
StarGiftAttributeRarityUncommon│ │ ├──
StarGiftAttributeRarityRare│ │ ├──
StarGiftAttributeRarityEpic│ │ └──
StarGiftAttributeRarityLegendary│ ├── 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│ ├──
MessageEntityBotCommand│ ├──
MessageEntityUrl│ ├──
MessageEntityEmail│ ├──
MessageEntityBold│ ├──
MessageEntityItalic│ ├──
MessageEntityCode│ ├──
MessageEntityPre│ ├──
MessageEntityTextUrl│ ├──
MessageEntityMentionName│ ├──
MessageEntityPhone│ ├──
MessageEntityCashtag│ ├──
MessageEntityUnderline│ ├──
MessageEntityStrike│ ├──
MessageEntityBankCard│ ├──
MessageEntitySpoiler│ ├──
MessageEntityCustomEmoji│ ├──
MessageEntityBlockquote├── prices →
Vector < StarGiftUpgradePrice >│ └──
StarGiftUpgradePrice│ ├── date →
int│ └── upgrade_stars →
long└── next_prices →
Vector < StarGiftUpgradePrice >├── date →
int└── upgrade_stars →
longExample
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
)
],
)