StarGiftUnique#
- class pyrogram.raw.types.StarGiftUnique#
Represents a collectible star gift, see here for more info. The sticker that represents the gift is contained in a starGiftAttributeModel object in attributes.
Constructor of
StarGift.- Details:
Layer:
220ID:
569D64C9
- Parameters:
- id (
int64-bit): Identifier of the collectible gift.
- gift_id (
int64-bit): Unique ID of the gift.
- title (
str): Collectible title.
- slug (
str): Slug that can be used to create a collectible gift deep link », or elsewhere in the API where a collectible slug is accepted.
- num (
int32-bit): Unique identifier of this collectible gift among all (already upgraded) collectible gifts of the same type.
- attributes (List of
StarGiftAttribute): Collectible attributes
- availability_issued (
int32-bit): Total number of gifts of the same type that were upgraded to a collectible gift.
- availability_total (
int32-bit): Total number of gifts of the same type that can be upgraded or were already upgraded to a collectible gift.
- require_premium (
bool, optional): This gift can only be bought by users with a Premium subscription.
- resale_ton_only (
bool, optional): Whether the gift can be bought only using Toncoins.
- theme_available (
bool, optional): A chat theme associated to this gift is available, see here » for more info on how to use it.
- owner_id (
Peer, optional): The owner of the gift.
- owner_name (
str, optional): The name of the owner if neither owner_id nor owner_address are set.
- owner_address (
str, optional): For NFTs on the TON blockchain, contains the address of the owner (append it to the ton_blockchain_explorer_url client configuration value » to obtain a link with information about the address).
- gift_address (
str, optional): For NFTs on the TON blockchain, contains the address of the NFT (append it to the ton_blockchain_explorer_url client configuration value » to obtain a link with information about the address).
- resell_amount (List of
StarsAmount, optional): Resale price of the gift.
- released_by (
Peer, optional): This gift was released by the specified peer.
- value_amount (
int64-bit, optional): Price of the gift.
- value_currency (
str, optional): Currency for the gift’s price.
- value_usd_amount (
int64-bit, optional): N/A
- theme_peer (
Peer, optional): The current chat where the associated chat theme is installed, if any (gift-based themes can only be installed in one chat at a time).
- peer_color (
PeerColor, optional): N/A
- host_id (
Peer, optional): N/A
- offer_min_stars (
int32-bit, optional): N/A
- id (