Describes an upgraded gift that can be transferred to another owner or transferred to the TON blockchain as an NFT.
|
| void | store (TlStorerToString &s, const char *field_name) const final |
| | upgradedGift () |
| | upgradedGift (int64 id_, int64 regular_gift_id_, int53 publisher_chat_id_, string const &title_, string const &name_, int32 number_, int32 total_upgraded_count_, int32 max_upgraded_count_, bool is_burned_, bool is_crafted_, bool is_premium_, bool is_theme_available_, int53 used_theme_chat_id_, object_ptr< MessageSender > &&host_id_, object_ptr< MessageSender > &&owner_id_, string const &owner_address_, string const &owner_name_, string const &gift_address_, object_ptr< upgradedGiftModel > &&model_, object_ptr< upgradedGiftSymbol > &&symbol_, object_ptr< upgradedGiftBackdrop > &&backdrop_, object_ptr< upgradedGiftOriginalDetails > &&original_details_, object_ptr< upgradedGiftColors > &&colors_, object_ptr< giftResaleParameters > &&resale_parameters_, bool can_send_purchase_offer_, int32 craft_probability_per_mille_, string const &value_currency_, int53 value_amount_, int53 value_usd_amount_) |
| TlObject & | operator= (const TlObject &)=delete |
| TlObject & | operator= (TlObject &&)=default |
| virtual void | store (TlStorerCalcLength &s) const |
| virtual void | store (TlStorerUnsafe &s) const |
| | TlObject ()=default |
| | TlObject (const TlObject &)=delete |
| | TlObject (TlObject &&)=default |
| virtual | ~TlObject ()=default |
|
|
object_ptr< upgradedGiftBackdrop > | backdrop_ |
| | Backdrop of the upgraded gift.
|
|
bool | can_send_purchase_offer_ |
| | True, if an offer to purchase the gift can be sent using sendGiftPurchaseOffer.
|
|
object_ptr< upgradedGiftColors > | colors_ |
| | Colors that can be set for user's name, background of empty chat photo, replies to messages and link previews; may be null if none or unknown.
|
|
int32 | craft_probability_per_mille_ |
| | Probability that the gift adds to the chance of successful crafting of a new gift; 0 if the gift can't be used for crafting.
|
|
string | gift_address_ |
| | Address of the gift NFT in TON blockchain; may be empty if none. Append the address to getOption("ton_blockchain_explorer_url") to get a link with information about the address.
|
|
object_ptr< MessageSender > | host_id_ |
| | Identifier of the user or the chat to which the upgraded gift was assigned from blockchain; may be null if none or unknown.
|
|
int64 | id_ |
| | Unique identifier of the gift.
|
|
bool | is_burned_ |
| | True, if the gift was used to craft another gift.
|
|
bool | is_crafted_ |
| | True, if the gift was crafted from other gifts.
|
|
bool | is_premium_ |
| | True, if the original gift could have been bought only by Telegram Premium subscribers.
|
|
bool | is_theme_available_ |
| | True, if the gift can be used to set a theme in a chat.
|
|
int32 | max_upgraded_count_ |
| | The maximum number of gifts that can be upgraded from the same gift.
|
|
object_ptr< upgradedGiftModel > | model_ |
| | Model of the upgraded gift.
|
|
string | name_ |
| | Unique name of the upgraded gift that can be used with internalLinkTypeUpgradedGift or sendResoldGift.
|
|
int32 | number_ |
| | Unique number of the upgraded gift among gifts upgraded from the same gift.
|
|
object_ptr< upgradedGiftOriginalDetails > | original_details_ |
| | Information about the originally sent gift; may be null if unknown.
|
|
string | owner_address_ |
| | Address of the gift NFT owner in TON blockchain; may be empty if none. Append the address to getOption("ton_blockchain_explorer_url") to get a link with information about the address.
|
|
object_ptr< MessageSender > | owner_id_ |
| | Identifier of the user or the chat that owns the upgraded gift; may be null if none or unknown.
|
|
string | owner_name_ |
| | Name of the owner for the case when owner identifier and address aren't known.
|
|
int53 | publisher_chat_id_ |
| | Identifier of the chat that published the gift; 0 if none.
|
|
int64 | regular_gift_id_ |
| | Unique identifier of the regular gift from which the gift was upgraded; may be 0 for short period of time for old gifts from database.
|
|
object_ptr< giftResaleParameters > | resale_parameters_ |
| | Resale parameters of the gift; may be null if resale isn't possible.
|
|
object_ptr< upgradedGiftSymbol > | symbol_ |
| | Symbol of the upgraded gift.
|
|
string | title_ |
| | The title of the upgraded gift.
|
|
int32 | total_upgraded_count_ |
| | Total number of gifts that were upgraded from the same gift.
|
|
int53 | used_theme_chat_id_ |
| | Identifier of the chat for which the gift is used to set a theme; 0 if none or the gift isn't owned by the current user.
|
|
int53 | value_amount_ |
| | Estimated value of the gift; in the smallest units of the currency; 0 if unavailable.
|
|
string | value_currency_ |
| | ISO 4217 currency code of the currency in which value of the gift is represented; may be empty if unavailable.
|
|
int53 | value_usd_amount_ |
| | Estimated value of the gift in USD; in USD cents; 0 if unavailable.
|