tdlib-obf API
Reference documentation for the public tdlib-obf API, generated from TDLib schemas and public headers
Loading...
Searching...
No Matches
td::td_api::upgradedGift Class Referencefinal

#include </home/runner/work/tdlib-obf/tdlib-obf/td/generate/auto/td/telegram/td_api.h>

Inheritance diagram for td::td_api::upgradedGift:
td::td_api::Object td::TlObject

Public Member Functions

 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_)
 
void store (TlStorerToString &s, const char *field_name) const final
 
- Public Member Functions inherited from td::TlObject
virtual void store (TlStorerUnsafe &s) const
 
virtual void store (TlStorerCalcLength &s) const
 
 TlObject ()=default
 
 TlObject (const TlObject &)=delete
 
TlObjectoperator= (const TlObject &)=delete
 
 TlObject (TlObject &&)=default
 
TlObjectoperator= (TlObject &&)=default
 
virtual ~TlObject ()=default
 

Public Attributes

int64 id_
 Unique identifier of the gift.
 
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.
 
int53 publisher_chat_id_
 Identifier of the chat that published the gift; 0 if none.
 
string title_
 The title 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.
 
int32 total_upgraded_count_
 Total number of gifts that were upgraded from the same gift.
 
int32 max_upgraded_count_
 The maximum number of gifts that can be upgraded from the same gift.
 
bool is_burned_
 True, if the gift was used to craft another gift.
 
bool is_crafted_
 True, if the gift was craft from another 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.
 
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&#x27;t owned by the current user.
 
object_ptr< MessageSenderhost_id_
 Identifier of the user or the chat to which the upgraded gift was assigned from blockchain; may be null if none or unknown.
 
object_ptr< MessageSenderowner_id_
 Identifier of the user or the chat that owns the upgraded gift; may be null if none or 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.
 
string owner_name_
 Name of the owner for the case when owner identifier and address aren&#x27;t known.
 
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< upgradedGiftModelmodel_
 Model of the upgraded gift.
 
object_ptr< upgradedGiftSymbolsymbol_
 Symbol of the upgraded gift.
 
object_ptr< upgradedGiftBackdropbackdrop_
 Backdrop of the upgraded gift.
 
object_ptr< upgradedGiftOriginalDetailsoriginal_details_
 Information about the originally sent gift; may be null if unknown.
 
object_ptr< upgradedGiftColorscolors_
 Colors that can be set for user&#x27;s name, background of empty chat photo, replies to messages and link previews; may be null if none or unknown.
 
object_ptr< giftResaleParametersresale_parameters_
 Resale parameters of the gift; may be null if resale isn&#x27;t possible.
 
bool can_send_purchase_offer_
 True, if an offer to purchase the gift can be sent using sendGiftPurchaseOffer.
 
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&#x27;t be used for crafting.
 
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_amount_
 Estimated value of the gift; in the smallest units of the currency; 0 if unavailable.
 
int53 value_usd_amount_
 Estimated value of the gift in USD; in USD cents; 0 if unavailable.
 

Static Public Attributes

static const std::int32_t ID = 239775652
 Identifier uniquely determining a type of the object.
 

Detailed Description

Describes an upgraded gift that can be transferred to another owner or transferred to the TON blockchain as an NFT.

Definition at line 83509 of file td_api.h.

Constructor & Destructor Documentation

◆ upgradedGift() [1/2]

td::td_api::upgradedGift::upgradedGift ( )

Describes an upgraded gift that can be transferred to another owner or transferred to the TON blockchain as an NFT.

◆ upgradedGift() [2/2]

td::td_api::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_ 
)

Describes an upgraded gift that can be transferred to another owner or transferred to the TON blockchain as an NFT.

Parameters
[in]id_Unique identifier of the gift.
[in]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.
[in]publisher_chat_id_Identifier of the chat that published the gift; 0 if none.
[in]title_The title of the upgraded gift.
[in]name_Unique name of the upgraded gift that can be used with internalLinkTypeUpgradedGift or sendResoldGift.
[in]number_Unique number of the upgraded gift among gifts upgraded from the same gift.
[in]total_upgraded_count_Total number of gifts that were upgraded from the same gift.
[in]max_upgraded_count_The maximum number of gifts that can be upgraded from the same gift.
[in]is_burned_True, if the gift was used to craft another gift.
[in]is_crafted_True, if the gift was craft from another gifts.
[in]is_premium_True, if the original gift could have been bought only by Telegram Premium subscribers.
[in]is_theme_available_True, if the gift can be used to set a theme in a chat.
[in]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&#x27;t owned by the current user.
[in]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.
[in]owner_id_Identifier of the user or the chat that owns the upgraded gift; may be null if none or unknown.
[in]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.
[in]owner_name_Name of the owner for the case when owner identifier and address aren&#x27;t known.
[in]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.
[in]model_Model of the upgraded gift.
[in]symbol_Symbol of the upgraded gift.
[in]backdrop_Backdrop of the upgraded gift.
[in]original_details_Information about the originally sent gift; may be null if unknown.
[in]colors_Colors that can be set for user&#x27;s name, background of empty chat photo, replies to messages and link previews; may be null if none or unknown.
[in]resale_parameters_Resale parameters of the gift; may be null if resale isn&#x27;t possible.
[in]can_send_purchase_offer_True, if an offer to purchase the gift can be sent using sendGiftPurchaseOffer.
[in]craft_probability_per_mille_Probability that the gift adds to the chance of successful crafting of a new gift; 0 if the gift can&#x27;t be used for crafting.
[in]value_currency_ISO 4217 currency code of the currency in which value of the gift is represented; may be empty if unavailable.
[in]value_amount_Estimated value of the gift; in the smallest units of the currency; 0 if unavailable.
[in]value_usd_amount_Estimated value of the gift in USD; in USD cents; 0 if unavailable.

Member Function Documentation

◆ store()

void td::td_api::upgradedGift::store ( TlStorerToString &  s,
const char *  field_name 
) const
finalvirtual

Helper function for to_string method. Appends string representation of the object to the storer.

Parameters
[in]sStorer to which object string representation will be appended.
[in]field_nameObject field_name if applicable.

Implements td::TlObject.

Member Data Documentation

◆ backdrop_

object_ptr<upgradedGiftBackdrop> td::td_api::upgradedGift::backdrop_

Backdrop of the upgraded gift.

Definition at line 83560 of file td_api.h.

◆ can_send_purchase_offer_

bool td::td_api::upgradedGift::can_send_purchase_offer_

True, if an offer to purchase the gift can be sent using sendGiftPurchaseOffer.

Definition at line 83568 of file td_api.h.

◆ colors_

object_ptr<upgradedGiftColors> td::td_api::upgradedGift::colors_

Colors that can be set for user&#x27;s name, background of empty chat photo, replies to messages and link previews; may be null if none or unknown.

Definition at line 83564 of file td_api.h.

◆ craft_probability_per_mille_

int32 td::td_api::upgradedGift::craft_probability_per_mille_

Probability that the gift adds to the chance of successful crafting of a new gift; 0 if the gift can&#x27;t be used for crafting.

Definition at line 83570 of file td_api.h.

◆ gift_address_

string td::td_api::upgradedGift::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.

Definition at line 83554 of file td_api.h.

◆ host_id_

object_ptr<MessageSender> td::td_api::upgradedGift::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.

Definition at line 83546 of file td_api.h.

◆ ID

const std::int32_t td::td_api::upgradedGift::ID = 239775652
static

Identifier uniquely determining a type of the object.

Definition at line 83619 of file td_api.h.

◆ id_

int64 td::td_api::upgradedGift::id_

Unique identifier of the gift.

Definition at line 83520 of file td_api.h.

◆ is_burned_

bool td::td_api::upgradedGift::is_burned_

True, if the gift was used to craft another gift.

Definition at line 83536 of file td_api.h.

◆ is_crafted_

bool td::td_api::upgradedGift::is_crafted_

True, if the gift was craft from another gifts.

Definition at line 83538 of file td_api.h.

◆ is_premium_

bool td::td_api::upgradedGift::is_premium_

True, if the original gift could have been bought only by Telegram Premium subscribers.

Definition at line 83540 of file td_api.h.

◆ is_theme_available_

bool td::td_api::upgradedGift::is_theme_available_

True, if the gift can be used to set a theme in a chat.

Definition at line 83542 of file td_api.h.

◆ max_upgraded_count_

int32 td::td_api::upgradedGift::max_upgraded_count_

The maximum number of gifts that can be upgraded from the same gift.

Definition at line 83534 of file td_api.h.

◆ model_

object_ptr<upgradedGiftModel> td::td_api::upgradedGift::model_

Model of the upgraded gift.

Definition at line 83556 of file td_api.h.

◆ name_

string td::td_api::upgradedGift::name_

Unique name of the upgraded gift that can be used with internalLinkTypeUpgradedGift or sendResoldGift.

Definition at line 83528 of file td_api.h.

◆ number_

int32 td::td_api::upgradedGift::number_

Unique number of the upgraded gift among gifts upgraded from the same gift.

Definition at line 83530 of file td_api.h.

◆ original_details_

object_ptr<upgradedGiftOriginalDetails> td::td_api::upgradedGift::original_details_

Information about the originally sent gift; may be null if unknown.

Definition at line 83562 of file td_api.h.

◆ owner_address_

string td::td_api::upgradedGift::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.

Definition at line 83550 of file td_api.h.

◆ owner_id_

object_ptr<MessageSender> td::td_api::upgradedGift::owner_id_

Identifier of the user or the chat that owns the upgraded gift; may be null if none or unknown.

Definition at line 83548 of file td_api.h.

◆ owner_name_

string td::td_api::upgradedGift::owner_name_

Name of the owner for the case when owner identifier and address aren&#x27;t known.

Definition at line 83552 of file td_api.h.

◆ publisher_chat_id_

int53 td::td_api::upgradedGift::publisher_chat_id_

Identifier of the chat that published the gift; 0 if none.

Definition at line 83524 of file td_api.h.

◆ regular_gift_id_

int64 td::td_api::upgradedGift::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.

Definition at line 83522 of file td_api.h.

◆ resale_parameters_

object_ptr<giftResaleParameters> td::td_api::upgradedGift::resale_parameters_

Resale parameters of the gift; may be null if resale isn&#x27;t possible.

Definition at line 83566 of file td_api.h.

◆ symbol_

object_ptr<upgradedGiftSymbol> td::td_api::upgradedGift::symbol_

Symbol of the upgraded gift.

Definition at line 83558 of file td_api.h.

◆ title_

string td::td_api::upgradedGift::title_

The title of the upgraded gift.

Definition at line 83526 of file td_api.h.

◆ total_upgraded_count_

int32 td::td_api::upgradedGift::total_upgraded_count_

Total number of gifts that were upgraded from the same gift.

Definition at line 83532 of file td_api.h.

◆ used_theme_chat_id_

int53 td::td_api::upgradedGift::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&#x27;t owned by the current user.

Definition at line 83544 of file td_api.h.

◆ value_amount_

int53 td::td_api::upgradedGift::value_amount_

Estimated value of the gift; in the smallest units of the currency; 0 if unavailable.

Definition at line 83574 of file td_api.h.

◆ value_currency_

string td::td_api::upgradedGift::value_currency_

ISO 4217 currency code of the currency in which value of the gift is represented; may be empty if unavailable.

Definition at line 83572 of file td_api.h.

◆ value_usd_amount_

int53 td::td_api::upgradedGift::value_usd_amount_

Estimated value of the gift in USD; in USD cents; 0 if unavailable.

Definition at line 83576 of file td_api.h.


The documentation for this class was generated from the following file: