Inherits MessageContent.
An upgraded gift was received or sent by the current user, or the current user was notified about a channel gift.
Public Fields | |
object_ptr< upgradedGift > | gift_ |
The gift. | |
object_ptr< MessageSender > | sender_id_ |
Sender of the gift; may be null for anonymous gifts. | |
string | received_gift_id_ |
Unique identifier of the received gift for the current user; only for the receiver of the gift. | |
bool | is_upgrade_ |
True, if the gift was obtained by upgrading of a previously received gift; otherwise, this is a transferred 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. | |
bool | can_be_transferred_ |
True, if the gift can be transferred to another owner; only for the receiver of the gift. | |
bool | was_transferred_ |
True, if the gift was transferred to another owner; only for the receiver of the gift. | |
int53 | transfer_star_count_ |
Number of Telegram Stars that must be paid to transfer the upgraded gift; 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; 0 if NFT export isn't possible; only for the receiver of the gift. | |
Public Instance Methods | |
messageUpgradedGift () | |
messageUpgradedGift (object_ptr< upgradedGift > &&gift_, object_ptr< MessageSender > &&sender_id_, string const &received_gift_id_, bool is_upgrade_, bool is_saved_, bool can_be_transferred_, bool was_transferred_, int53 transfer_star_count_, int32 export_date_) | |
void | store (TlStorerToString &s, const char *field_name) const final |
![]() | |
virtual void | store (TlStorerUnsafe &s) const |
virtual void | store (TlStorerCalcLength &s) const |
TlObject ()=default | |
TlObject (const TlObject &)=delete | |
TlObject & | operator= (const TlObject &)=delete |
TlObject (TlObject &&)=default | |
TlObject & | operator= (TlObject &&)=default |
virtual | ~TlObject ()=default |
Static Public Attributes | |
static const std::int32_t | ID = -1068647053 |
Identifier uniquely determining a type of the object. | |
An upgraded gift was received or sent by the current user, or the current user was notified about a channel gift.
messageUpgradedGift | ( | object_ptr< upgradedGift > && | gift_, |
object_ptr< MessageSender > && | sender_id_, | ||
string const & | received_gift_id_, | ||
bool | is_upgrade_, | ||
bool | is_saved_, | ||
bool | can_be_transferred_, | ||
bool | was_transferred_, | ||
int53 | transfer_star_count_, | ||
int32 | export_date_ | ||
) |
An upgraded gift was received or sent by the current user, or the current user was notified about a channel gift.
[in] | gift_ | The gift. |
[in] | sender_id_ | Sender of the gift; may be null for anonymous gifts. |
[in] | received_gift_id_ | Unique identifier of the received gift for the current user; only for the receiver of the gift. |
[in] | is_upgrade_ | True, if the gift was obtained by upgrading of a previously received gift; otherwise, this is a transferred 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 was 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] | export_date_ | Point in time (Unix timestamp) when the gift can be transferred to the TON blockchain as an NFT; 0 if NFT export isn't possible; only for the receiver of the gift. |
|
finalvirtual |