TDLib
Loading...
Searching...
No Matches
messageGiveawayPrizeStars Class Referencefinal

Inherits MessageContent.

Description

Telegram Stars were received by the current user from a giveaway.

Public Member Functions

 messageGiveawayPrizeStars ()
 messageGiveawayPrizeStars (int53 star_count_, string const &transaction_id_, int53 boosted_chat_id_, int53 giveaway_message_id_, bool is_unclaimed_, object_ptr< sticker > &&sticker_)
void store (TlStorerToString &s, const char *field_name) const final
Public Member Functions inherited from TlObject
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

Public Attributes

int53 boosted_chat_id_
 Identifier of the supergroup or channel chat, which was automatically boosted by the winners of the giveaway.
int53 giveaway_message_id_
 Identifier of the message with the giveaway in the boosted chat; may be 0 or an identifier of a deleted message.
bool is_unclaimed_
 True, if the corresponding winner wasn't chosen and the Telegram Stars were received by the owner of the boosted chat.
int53 star_count_
 Number of Telegram Stars that were received.
object_ptr< sticker > sticker_
 A sticker to be shown in the message; may be null if unknown.
string transaction_id_
 Identifier of the transaction for Telegram Stars credit.

Static Public Attributes

static const std::int32_t ID = -1441833501
 Identifier uniquely determining a type of the object.

Constructor & Destructor Documentation

◆ messageGiveawayPrizeStars() [1/2]

messageGiveawayPrizeStars ( )

Telegram Stars were received by the current user from a giveaway.

◆ messageGiveawayPrizeStars() [2/2]

messageGiveawayPrizeStars ( int53 star_count_,
string const & transaction_id_,
int53 boosted_chat_id_,
int53 giveaway_message_id_,
bool is_unclaimed_,
object_ptr< sticker > && sticker_ )

Telegram Stars were received by the current user from a giveaway.

Parameters
[in]star_count_Number of Telegram Stars that were received.
[in]transaction_id_Identifier of the transaction for Telegram Stars credit.
[in]boosted_chat_id_Identifier of the supergroup or channel chat, which was automatically boosted by the winners of the giveaway.
[in]giveaway_message_id_Identifier of the message with the giveaway in the boosted chat; may be 0 or an identifier of a deleted message.
[in]is_unclaimed_True, if the corresponding winner wasn't chosen and the Telegram Stars were received by the owner of the boosted chat.
[in]sticker_A sticker to be shown in the message; may be null if unknown.

Member Function Documentation

◆ store()

void store ( TlStorerToString & s,
const char * field_name ) const
finalvirtual

Helper function for to_string method. Appends string representation of the object to the storer.

Parameters
[in]sStorer to which object string representation will be appended.
[in]field_nameObject field_name if applicable.

Implements TlObject.


The documentation for this class was generated from the following file: