WebPageAttributeUniqueStarGift
- class pyrogram.raw.types.WebPageAttributeUniqueStarGift
Contains info about collectible gift » for a webPage preview of a collectible gift » (the webPage will have a type of telegram_nft).
Constructor of
WebPageAttribute.- Details:
Layer:
223ID:
CF6F6DB8
- Parameters:
gift (
StarGift) – The starGiftUnique constructor.
TL Schema
webPageAttributeUniqueStarGift#cf6f6db8
gift:StarGift
= WebPageAttribute
Parameter Tree
WebPageAttributeUniqueStarGift
└── gift →
StarGift├──
StarGift│ ├── limited →
true (optional)│ ├── sold_out →
true (optional)│ ├── birthday →
true (optional)│ ├── require_premium →
true (optional)│ ├── limited_per_user →
true (optional)│ ├── peer_color_available →
true (optional)│ ├── auction →
true (optional)│ ├── id →
long│ ├── sticker →
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│ ├── stars →
long│ ├── availability_remains →
int (optional)│ ├── availability_total →
int (optional)│ ├── availability_resale →
long (optional)│ ├── convert_stars →
long│ ├── first_sale_date →
int (optional)│ ├── last_sale_date →
int (optional)│ ├── upgrade_stars →
long (optional)│ ├── resell_min_stars →
long (optional)│ ├── title →
string (optional)│ ├── released_by →
Peer (optional)│ │ ├──
PeerUser│ │ │ └── user_id →
long│ │ ├──
PeerChat│ │ │ └── chat_id →
long│ │ └──
PeerChannel│ │ └── channel_id →
long│ ├── per_user_total →
int (optional)│ ├── per_user_remains →
int (optional)│ ├── locked_until_date →
int (optional)│ ├── auction_slug →
string (optional)│ ├── gifts_per_round →
int (optional)│ ├── auction_start_date →
int (optional)│ ├── upgrade_variants →
int (optional)│ └── background →
StarGiftBackground (optional)│ └──
StarGiftBackground│ ├── center_color →
int│ ├── edge_color →
int│ └── text_color →
int└──
StarGiftUnique├── require_premium →
true (optional)├── resale_ton_only →
true (optional)├── theme_available →
true (optional)├── burned →
true (optional)├── crafted →
true (optional)├── id →
long├── gift_id →
long├── title →
string├── slug →
string├── num →
int├── owner_id →
Peer (optional)│ ├──
PeerUser│ │ └── user_id →
long│ ├──
PeerChat│ │ └── chat_id →
long│ └──
PeerChannel│ └── channel_id →
long├── owner_name →
string (optional)├── owner_address →
string (optional)├── attributes →
Vector < StarGiftAttribute >│ ├──
StarGiftAttributeModel│ │ ├── crafted →
true (optional)│ │ ├── name →
string│ │ ├── document →
Document│ │ │ ├──
DocumentEmpty│ │ │ └──
Document│ │ └── rarity →
StarGiftAttributeRarity│ │ ├──
StarGiftAttributeRarity│ │ ├──
StarGiftAttributeRarityUncommon│ │ ├──
StarGiftAttributeRarityRare│ │ ├──
StarGiftAttributeRarityEpic│ │ └──
StarGiftAttributeRarityLegendary│ ├──
StarGiftAttributePattern│ │ ├── name →
string│ │ ├── document →
Document│ │ │ ├──
DocumentEmpty│ │ │ └──
Document│ │ └── rarity →
StarGiftAttributeRarity│ │ ├──
StarGiftAttributeRarity│ │ ├──
StarGiftAttributeRarityUncommon│ │ ├──
StarGiftAttributeRarityRare│ │ ├──
StarGiftAttributeRarityEpic│ │ └──
StarGiftAttributeRarityLegendary│ │ ├── name →
string│ │ ├── backdrop_id →
int│ │ ├── center_color →
int│ │ ├── edge_color →
int│ │ ├── pattern_color →
int│ │ ├── text_color →
int│ │ └── rarity →
StarGiftAttributeRarity│ │ ├──
StarGiftAttributeRarity│ │ ├──
StarGiftAttributeRarityUncommon│ │ ├──
StarGiftAttributeRarityRare│ │ ├──
StarGiftAttributeRarityEpic│ │ └──
StarGiftAttributeRarityLegendary│ ├── sender_id →
Peer (optional)│ │ ├──
PeerUser│ │ ├──
PeerChat│ │ └──
PeerChannel│ ├── recipient_id →
Peer│ │ ├──
PeerUser│ │ ├──
PeerChat│ │ └──
PeerChannel│ ├── date →
int│ └── message →
TextWithEntities (optional)│ └──
TextWithEntities├── availability_issued →
int├── availability_total →
int├── gift_address →
string (optional)├── resell_amount →
Vector < StarsAmount > (optional)│ ├──
StarsAmount│ │ ├── amount →
long│ │ └── nanos →
int│ └──
StarsTonAmount│ └── amount →
long├── released_by →
Peer (optional)│ ├──
PeerUser│ │ └── user_id →
long│ ├──
PeerChat│ │ └── chat_id →
long│ └──
PeerChannel│ └── channel_id →
long├── value_amount →
long (optional)├── value_currency →
string (optional)├── value_usd_amount →
long (optional)├── theme_peer →
Peer (optional)│ ├──
PeerUser│ │ └── user_id →
long│ ├──
PeerChat│ │ └── chat_id →
long│ └──
PeerChannel│ └── channel_id →
long├── peer_color →
PeerColor (optional)│ ├──
PeerColor│ │ ├── color →
int (optional)│ │ └── background_emoji_id →
long (optional)│ ├──
PeerColorCollectible│ │ ├── collectible_id →
long│ │ ├── gift_emoji_id →
long│ │ ├── background_emoji_id →
long│ │ ├── accent_color →
int│ │ ├── colors →
Vector < int >│ │ ├── dark_accent_color →
int (optional)│ │ └── dark_colors →
Vector < int > (optional)│ └── collectible_id →
long├── host_id →
Peer (optional)│ ├──
PeerUser│ │ └── user_id →
long│ ├──
PeerChat│ │ └── chat_id →
long│ └──
PeerChannel│ └── channel_id →
long├── offer_min_stars →
int (optional)└── craft_chance_permille →
int (optional)Example
WebPageAttributeUniqueStarGift(
gift=StarGift(
id=0,
sticker=DocumentEmpty(id=0),
stars=0,
convert_stars=0
),
)