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.

Layer 223

starGiftUnique#85f0a9cd flags:# require_premium:flags.6?true resale_ton_only:flags.7?true theme_available:flags.9?true burned:flags.14?true crafted:flags.15?true id:long gift_id:long title:string slug:string num:int owner_id:flags.0?Peer owner_name:flags.1?string owner_address:flags.2?string attributes:Vector<StarGiftAttribute> availability_issued:int availability_total:int gift_address:flags.3?string resell_amount:flags.4?Vector<StarsAmount> released_by:flags.5?Peer value_amount:flags.8?long value_currency:flags.8?string value_usd_amount:flags.8?long theme_peer:flags.10?Peer peer_color:flags.11?PeerColor host_id:flags.12?Peer offer_min_stars:flags.13?int craft_chance_permille:flags.16?int = StarGift;

Parameters #

NameTypeDescription
flags#Flags, see TL conditional fields
require_premiumflags.6?trueThis gift can only be bought by users with a Premium subscription.
resale_ton_onlyflags.7?trueWhether the gift can be bought only using Grams.
theme_availableflags.9?trueA chat theme associated to this gift is available, see here » for more info on how to use it.
burnedflags.14?trueThis gift was already used as an ingredient for crafting another collectible gift ».
craftedflags.15?trueThis collectible gift was obtained by crafting », not by upgrading a regular gift.
idlongUnique identifier of this collectible gift.
gift_idlongID of the regular gift from which this gift was upgraded (all collectible gifts upgraded from the same gift will have the same gift_id, with different attributes).
titlestringCollectible title.
slugstringSlug that can be used to create a collectible gift deep link », or elsewhere in the API where a collectible slug is accepted.
numintUnique identifier of this collectible gift among all (already upgraded) collectible gifts of the same type.
owner_idflags.0?PeerThe owner of the gift.
owner_nameflags.1?stringThe name of the owner if neither owner_id nor owner_address are set.
owner_addressflags.2?stringFor 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).
attributesVector<StarGiftAttribute>Collectible attributes
availability_issuedintTotal number of gifts of the same type that were upgraded to a collectible gift.
availability_totalintTotal number of gifts of the same type that can be upgraded or were already upgraded to a collectible gift.
gift_addressflags.3?stringFor 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_amountflags.4?Vector<StarsAmount>Resale price of the gift.
released_byflags.5?PeerThis gift was released by the specified peer.
value_amountflags.8?longEstimated price of the gift.
value_currencyflags.8?stringCurrency for the gift's estimated price.
value_usd_amountflags.8?longEstimated price of the gift in USD cents.
theme_peerflags.10?PeerThe 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_colorflags.11?PeerColorCan contain a collectible message palette ».
host_idflags.12?PeerIf set, the gift is currently hosted on the specified user or channel profile », while ownership remains with the TON wallet in owner_address.
offer_min_starsflags.13?intIf set, you can send a purchase offer for this gift »: the minimum offer price is specified in this flag.
craft_chance_permilleflags.16?intSuccess probability, per 1000, contributed by this gift when it is used for crafting ».

Type #

StarGift

Telegram Premium #

Telegram Premium is an optional subscription service that unlocks additional exclusive client-side and API-side features, while helping support the development of the app.

Telegram themes #

Telegram apps support generating, sharing and synchronizing app themes.

Telegram Gifts #

Users can send Gifts to their friends. The recipients of gifts can display them on their profile pages or turn them into Telegram Stars ». Telegram Stars can be used for many things, including supporting creators and buying services in mini apps.

Telegram clients must handle special tg:// and t.me deep links encountered in messages, link entities and in other apps by registering OS handlers.

Client configuration #

The MTProto API has multiple configuration parameters that can be fetched with the appropriate methods.

Accent colors #

Telegram users and channels can change the accent color and background pattern of their profile page and their messages!

starGiftAttributeModel #

The model of a collectible gift ».