An upgraded gift was received or sent by the current user, or the current user was notified about a channel gift.
|
| | 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 |
| 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 |
|
|
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.
|