Inherits GiveawayInfo.
Describes a completed giveaway.
Public Fields | |
| int32 | creation_date_ |
| Point in time (Unix timestamp) when the giveaway was created. | |
| int32 | actual_winners_selection_date_ |
| Point in time (Unix timestamp) when the winners were selected. May be bigger than winners selection date specified in parameters of the giveaway. | |
| bool | was_refunded_ |
| True, if the giveaway was canceled and was fully refunded. | |
| bool | is_winner_ |
| True, if the current user is a winner of the giveaway. | |
| int32 | winner_count_ |
| Number of winners in the giveaway. | |
| int32 | activation_count_ |
| Number of winners, which activated their gift codes; for Telegram Premium giveaways only. | |
| string | gift_code_ |
| Telegram Premium gift code that was received by the current user; empty if the user isn't a winner in the giveaway or the giveaway isn't a Telegram Premium giveaway. | |
| int53 | won_star_count_ |
| The amount of Telegram Stars won by the current user; 0 if the user isn't a winner in the giveaway or the giveaway isn't a Telegram Star giveaway. | |
Public Instance Methods | |
| giveawayInfoCompleted () | |
| giveawayInfoCompleted (int32 creation_date_, int32 actual_winners_selection_date_, bool was_refunded_, bool is_winner_, int32 winner_count_, int32 activation_count_, string const &gift_code_, int53 won_star_count_) | |
| 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 = 848085852 |
| Identifier uniquely determining a type of the object. | |
Describes a completed giveaway.
| giveawayInfoCompleted | ( | int32 | creation_date_, |
| int32 | actual_winners_selection_date_, | ||
| bool | was_refunded_, | ||
| bool | is_winner_, | ||
| int32 | winner_count_, | ||
| int32 | activation_count_, | ||
| string const & | gift_code_, | ||
| int53 | won_star_count_ | ||
| ) |
Describes a completed giveaway.
| [in] | creation_date_ | Point in time (Unix timestamp) when the giveaway was created. |
| [in] | actual_winners_selection_date_ | Point in time (Unix timestamp) when the winners were selected. May be bigger than winners selection date specified in parameters of the giveaway. |
| [in] | was_refunded_ | True, if the giveaway was canceled and was fully refunded. |
| [in] | is_winner_ | True, if the current user is a winner of the giveaway. |
| [in] | winner_count_ | Number of winners in the giveaway. |
| [in] | activation_count_ | Number of winners, which activated their gift codes; for Telegram Premium giveaways only. |
| [in] | gift_code_ | Telegram Premium gift code that was received by the current user; empty if the user isn't a winner in the giveaway or the giveaway isn't a Telegram Premium giveaway. |
| [in] | won_star_count_ | The amount of Telegram Stars won by the current user; 0 if the user isn't a winner in the giveaway or the giveaway isn't a Telegram Star giveaway. |
|
finalvirtual |