|
tdlib-obf API
Reference documentation for the public tdlib-obf API, generated from TDLib schemas and public headers
|
#include </home/runner/work/tdlib-obf/tdlib-obf/td/generate/auto/td/telegram/td_api.h>
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 td::TlObject | |
| 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 |
Public Attributes | |
| object_ptr< upgradedGift > | gift_ |
| The gift. | |
| object_ptr< MessageSender > | sender_id_ |
| Sender of the gift; may be null for anonymous gifts. | |
| object_ptr< MessageSender > | receiver_id_ |
| 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. | |
| 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 has already been 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. | |
| 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 | 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. | |
| 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 | 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. | |
| 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. | |
Static Public Attributes | |
| static const std::int32_t | ID = -1432909893 |
| 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.
| td::td_api::messageUpgradedGift::messageUpgradedGift | ( | ) |
An upgraded gift was received or sent by the current user, or the current user was notified about a channel gift.
| td::td_api::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_ | ||
| ) |
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] | 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. |
|
finalvirtual |
Helper function for to_string method. Appends string representation of the object to the storer.
| [in] | s | Storer to which object string representation will be appended. |
| [in] | field_name | Object field_name if applicable. |
Implements td::TlObject.
| bool td::td_api::messageUpgradedGift::can_be_transferred_ |
| int32 td::td_api::messageUpgradedGift::craft_date_ |
| int53 td::td_api::messageUpgradedGift::drop_original_details_star_count_ |
| int32 td::td_api::messageUpgradedGift::export_date_ |
| object_ptr<upgradedGift> td::td_api::messageUpgradedGift::gift_ |
|
static |
| bool td::td_api::messageUpgradedGift::is_saved_ |
| int32 td::td_api::messageUpgradedGift::next_resale_date_ |
| int32 td::td_api::messageUpgradedGift::next_transfer_date_ |
| object_ptr<UpgradedGiftOrigin> td::td_api::messageUpgradedGift::origin_ |
| string td::td_api::messageUpgradedGift::received_gift_id_ |
| object_ptr<MessageSender> td::td_api::messageUpgradedGift::receiver_id_ |
| object_ptr<MessageSender> td::td_api::messageUpgradedGift::sender_id_ |
| int53 td::td_api::messageUpgradedGift::transfer_star_count_ |
| bool td::td_api::messageUpgradedGift::was_transferred_ |