List of all members | Public Fields | Public Instance Methods | Static Public Attributes
messageGiveawayPrizeStars Class Referencefinal

Inherits MessageContent.

Description

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

Public Fields

int53 star_count_
 Number of Telegram Stars that were received.
 
string transaction_id_
 Identifier of the transaction for Telegram Stars credit.
 
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; can be 0 if the message was deleted.
 
bool is_unclaimed_
 True, if the corresponding winner wasn't chosen and the Telegram Stars were received by the owner of the boosted chat.
 
object_ptr< stickersticker_
 A sticker to be shown in the message; may be null if unknown.
 

Public Instance Methods

 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 Instance Methods inherited from TlObject
virtual void store (TlStorerUnsafe &s) const
 
virtual void store (TlStorerCalcLength &s) const
 
 TlObject ()=default
 
 TlObject (const TlObject &)=delete
 
TlObjectoperator= (const TlObject &)=delete
 
 TlObject (TlObject &&)=default
 
TlObjectoperator= (TlObject &&)=default
 
virtual ~TlObject ()=default
 

Static Public Attributes

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

Constructor & Destructor Documentation

◆ messageGiveawayPrizeStars() [1/2]

A 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_ 
)

A 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; can be 0 if the message was deleted.
[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.

Method 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: