Represents a gift received by a user or a chat.
|
| | receivedGift () |
| | receivedGift (string const &received_gift_id_, object_ptr< MessageSender > &&sender_id_, object_ptr< formattedText > &&text_, int32 unique_gift_number_, bool is_private_, bool is_saved_, bool is_pinned_, bool can_be_upgraded_, bool can_be_transferred_, bool was_refunded_, int32 date_, object_ptr< SentGift > &&gift_, array< int32 > &&collection_ids_, int53 sell_star_count_, int53 prepaid_upgrade_star_count_, bool is_upgrade_separate_, int53 transfer_star_count_, int53 drop_original_details_star_count_, int32 next_transfer_date_, int32 next_resale_date_, int32 export_date_, string const &prepaid_upgrade_hash_, 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 is an upgraded gift that can be transferred to another owner; only for the receiver of the gift.
|
|
bool | can_be_upgraded_ |
| | True, if the gift is a regular gift that can be upgraded to a unique gift; only for the receiver of the gift.
|
|
array< int32 > | collection_ids_ |
| | Identifiers of collections to which the gift is added; 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.
|
|
int32 | date_ |
| | Point in time (Unix timestamp) when the gift was sent.
|
|
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 upgraded 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< SentGift > | gift_ |
| | The gift.
|
|
bool | is_pinned_ |
| | True, if the gift is pinned to the top of the chat's profile page.
|
|
bool | is_private_ |
| | True, if the sender and gift text are shown only to the gift receiver; otherwise, everyone are able to see them.
|
|
bool | is_saved_ |
| | True, if the gift is displayed on the chat's profile page; only for the receiver of the gift.
|
|
bool | is_upgrade_separate_ |
| | True, if the upgrade was bought after the gift was sent. In this case, prepaid upgrade cost must not be added to the gift cost.
|
|
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.
|
|
string | prepaid_upgrade_hash_ |
| | If non-empty, then the user can pay for an upgrade of the gift using buyGiftUpgrade.
|
|
int53 | prepaid_upgrade_star_count_ |
| | Number of Telegram Stars that were paid by the sender for the ability to upgrade the gift.
|
|
string | received_gift_id_ |
| | Unique identifier of the received gift for the current user; only for the receiver of the gift.
|
|
int53 | sell_star_count_ |
| | Number of Telegram Stars that can be claimed by the receiver instead of the regular gift; 0 if the gift can't be sold by the current user.
|
|
object_ptr< MessageSender > | sender_id_ |
| | Identifier of a user or a chat that sent the gift; may be null if unknown.
|
|
object_ptr< formattedText > | text_ |
| | Message added to 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 | unique_gift_number_ |
| | Unique number of the gift among gifts upgraded from the same gift after upgrade; 0 if yet unassigned.
|
|
bool | was_refunded_ |
| | True, if the gift was refunded and isn't available anymore.
|