Inherits Object.
Describes a gift that can be sent to another user.
Public Fields | |
int64 | id_ |
Unique identifier of the gift. | |
object_ptr< sticker > | sticker_ |
The sticker representing the gift. | |
int53 | star_count_ |
Number of Telegram Stars that must be paid for the gift. | |
int53 | default_sell_star_count_ |
Number of Telegram Stars that can be claimed by the receiver instead of the gift by default. If the gift was paid with just bought Telegram Stars, then full value can be claimed. | |
int32 | remaining_count_ |
Number of remaining times the gift can be purchased by all users; 0 if not limited or the gift was sold out. | |
int32 | total_count_ |
Number of total times the gift can be purchased by all users; 0 if not limited. | |
int32 | first_send_date_ |
Point in time (Unix timestamp) when the gift was send for the first time; for sold out gifts only. | |
int32 | last_send_date_ |
Point in time (Unix timestamp) when the gift was send for the last time; for sold out gifts only. | |
Public Instance Methods | |
gift () | |
gift (int64 id_, object_ptr< sticker > &&sticker_, int53 star_count_, int53 default_sell_star_count_, int32 remaining_count_, int32 total_count_, int32 first_send_date_, int32 last_send_date_) | |
void | store (TlStorerToString &s, const char *field_name) const final |
Public Instance Methods inherited from 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 |
Static Public Attributes | |
static const std::int32_t | ID = -1647724383 |
Identifier uniquely determining a type of the object. | |
gift | ( | ) |
Describes a gift that can be sent to another user.
gift | ( | int64 | id_, |
object_ptr< sticker > && | sticker_, | ||
int53 | star_count_, | ||
int53 | default_sell_star_count_, | ||
int32 | remaining_count_, | ||
int32 | total_count_, | ||
int32 | first_send_date_, | ||
int32 | last_send_date_ | ||
) |
Describes a gift that can be sent to another user.
[in] | id_ | Unique identifier of the gift. |
[in] | sticker_ | The sticker representing the gift. |
[in] | star_count_ | Number of Telegram Stars that must be paid for the gift. |
[in] | default_sell_star_count_ | Number of Telegram Stars that can be claimed by the receiver instead of the gift by default. If the gift was paid with just bought Telegram Stars, then full value can be claimed. |
[in] | remaining_count_ | Number of remaining times the gift can be purchased by all users; 0 if not limited or the gift was sold out. |
[in] | total_count_ | Number of total times the gift can be purchased by all users; 0 if not limited. |
[in] | first_send_date_ | Point in time (Unix timestamp) when the gift was send for the first time; for sold out gifts only. |
[in] | last_send_date_ | Point in time (Unix timestamp) when the gift was send for the last time; for sold out gifts only. |
|
finalvirtual |