Layer 227
constructor
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

Name Type Description
RequirePremium flags .6? true This gift can only be bought by users with a Premium subscription.
ResaleTonOnly flags .7? true Whether the gift can be bought only using Grams.
ThemeAvailable flags .9? true A chat theme associated to this gift is available, see here for more info on how to use it.
Burned flags .14? true This gift was already used as an ingredient for crafting another collectible gift.
Crafted flags .15? true This collectible gift was obtained by crafting, not by upgrading a regular gift.
Id long Unique identifier of this collectible gift.
GiftId long ID 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).
Title string Collectible title.
Slug string Slug that can be used to create a collectible gift deep link, or elsewhere in the API where a collectible slug is accepted.
Num int Unique identifier of this collectible gift among all (already upgraded) collectible gifts of the same type.
OwnerId flags .0? Peer The owner of the gift.
OwnerName flags .1? string The name of the owner if neither owner_id nor owner_address are set.
OwnerAddress flags .2? string 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).
Attributes Vector < StarGiftAttribute > Collectible attributes
AvailabilityIssued int Total number of gifts of the same type that were upgraded to a collectible gift.
AvailabilityTotal int Total number of gifts of the same type that can be upgraded or were already upgraded to a collectible gift.
GiftAddress flags .3? string 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).
ResellAmount flags .4? Vector < StarsAmount > Resale price of the gift.
ReleasedBy flags .5? Peer This gift was released by the specified peer.
ValueAmount flags .8? long Estimated price of the gift.
ValueCurrency flags .8? string Currency for the gift's estimated price.
ValueUsdAmount flags .8? long Estimated price of the gift in USD cents.
ThemePeer flags .10? Peer 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).
PeerColor flags .11? PeerColor Can contain a collectible message palette.
HostId flags .12? Peer If set, the gift is currently hosted on the specified user or channel profile, while ownership remains with the TON wallet in owner_address.
OfferMinStars flags .13? int If set, you can send a purchase offer for this gift: the minimum offer price is specified in this flag.
CraftChancePermille flags .16? int Success probability, per 1000, contributed by this gift when it is used for crafting.

Returns

StarGift

Gogram Example

// Creating StarGiftUnique constructor
obj := &tg.StarGiftUnique{
    RequirePremium: nil,
    ResaleTonOnly: nil,
    ThemeAvailable: nil,
    Burned: nil,
    Crafted: nil,
    Id: int64(1234567890),
    // ... more required fields
}