TDLib
Loading...
Searching...
No Matches
messageUpgradedGift Class Referencefinal

Inherits MessageContent.

Description

An upgraded gift was received or sent by the current user, or the current user was notified about a channel gift.

Public Member Functions

 messageUpgradedGift ()
 messageUpgradedGift (object_ptr< upgradedGift > &&gift_, object_ptr< MessageSender > &&sender_id_, object_ptr< MessageSender > &&receiver_id_, object_ptr< UpgradedGiftOrigin > &&origin_, string const &received_gift_id_, bool is_saved_, bool can_be_transferred_, bool was_transferred_, int53 transfer_star_count_, int53 drop_original_details_star_count_, int32 next_transfer_date_, int32 next_resale_date_, int32 export_date_, int32 craft_date_)
void store (TlStorerToString &s, const char *field_name) const final
Public Member Functions inherited from TlObject
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

Public Attributes

bool can_be_transferred_
 True, if the gift can be transferred to another owner; only for the receiver of the gift.
int32 craft_date_
 Point in time (Unix timestamp) when the gift can be used to craft another gift; can be in the past; only for the receiver of the gift.
int53 drop_original_details_star_count_
 Number of Telegram Stars that must be paid to drop original details of the upgraded gift; 0 if not available; only for the receiver of the gift.
int32 export_date_
 Point in time (Unix timestamp) when the gift can be transferred to the TON blockchain as an NFT; can be in the past; 0 if NFT export isn't possible; only for the receiver of the gift.
object_ptr< upgradedGift > gift_
 The gift.
bool is_saved_
 True, if the gift is displayed on the user's or the channel's profile page; only for the receiver of the gift.
int32 next_resale_date_
 Point in time (Unix timestamp) when the gift can be resold to another user; can be in the past; 0 if the gift can't be resold; only for the receiver of the gift.
int32 next_transfer_date_
 Point in time (Unix timestamp) when the gift can be transferred to another owner; can be in the past; 0 if the gift can be transferred immediately or transfer isn't possible; only for the receiver of the gift.
object_ptr< UpgradedGiftOrigin > origin_
 Origin of the upgraded gift.
string received_gift_id_
 Unique identifier of the received gift for the current user; only for the receiver of the gift.
object_ptr< MessageSender > receiver_id_
 Receiver of the gift.
object_ptr< MessageSender > sender_id_
 Sender of the gift; may be null for anonymous gifts.
int53 transfer_star_count_
 Number of Telegram Stars that must be paid to transfer the upgraded gift; only for the receiver of the gift.
bool was_transferred_
 True, if the gift has already been transferred to another owner; only for the receiver of the gift.

Static Public Attributes

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

Constructor & Destructor Documentation

◆ messageUpgradedGift() [1/2]

messageUpgradedGift ( )

An upgraded gift was received or sent by the current user, or the current user was notified about a channel gift.

◆ messageUpgradedGift() [2/2]

messageUpgradedGift ( object_ptr< upgradedGift > && gift_,
object_ptr< MessageSender > && sender_id_,
object_ptr< MessageSender > && receiver_id_,
object_ptr< UpgradedGiftOrigin > && origin_,
string const & received_gift_id_,
bool is_saved_,
bool can_be_transferred_,
bool was_transferred_,
int53 transfer_star_count_,
int53 drop_original_details_star_count_,
int32 next_transfer_date_,
int32 next_resale_date_,
int32 export_date_,
int32 craft_date_ )

An upgraded gift was received or sent by the current user, or the current user was notified about a channel gift.

Parameters
[in]gift_The gift.
[in]sender_id_Sender of the gift; may be null for anonymous gifts.
[in]receiver_id_Receiver of the gift.
[in]origin_Origin of the upgraded gift.
[in]received_gift_id_Unique identifier of the received gift for the current user; only for the receiver of the gift.
[in]is_saved_True, if the gift is displayed on the user's or the channel's profile page; only for the receiver of the gift.
[in]can_be_transferred_True, if the gift can be transferred to another owner; only for the receiver of the gift.
[in]was_transferred_True, if the gift has already been transferred to another owner; only for the receiver of the gift.
[in]transfer_star_count_Number of Telegram Stars that must be paid to transfer the upgraded gift; only for the receiver of the gift.
[in]drop_original_details_star_count_Number of Telegram Stars that must be paid to drop original details of the upgraded gift; 0 if not available; only for the receiver of the gift.
[in]next_transfer_date_Point in time (Unix timestamp) when the gift can be transferred to another owner; can be in the past; 0 if the gift can be transferred immediately or transfer isn't possible; only for the receiver of the gift.
[in]next_resale_date_Point in time (Unix timestamp) when the gift can be resold to another user; can be in the past; 0 if the gift can't be resold; only for the receiver of the gift.
[in]export_date_Point in time (Unix timestamp) when the gift can be transferred to the TON blockchain as an NFT; can be in the past; 0 if NFT export isn't possible; only for the receiver of the gift.
[in]craft_date_Point in time (Unix timestamp) when the gift can be used to craft another gift; can be in the past; only for the receiver of the gift.

Member Function Documentation

◆ store()

void 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 TlObject.


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