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

Inherits MessageContent.

Description

A giveaway without public winners has been completed for the chat.

Public Fields

int53 giveaway_message_id_
 Identifier of the message with the giveaway; can be 0 if the message was deleted.
 
int32 winner_count_
 Number of winners in the giveaway.
 
bool is_star_giveaway_
 True, if the giveaway is a Telegram Star giveaway.
 
int32 unclaimed_prize_count_
 Number of undistributed prizes; for Telegram Premium giveaways only.
 

Public Instance Methods

 messageGiveawayCompleted ()
 
 messageGiveawayCompleted (int53 giveaway_message_id_, int32 winner_count_, bool is_star_giveaway_, int32 unclaimed_prize_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
 
TlObjectoperator= (const TlObject &)=delete
 
 TlObject (TlObject &&)=default
 
TlObjectoperator= (TlObject &&)=default
 
virtual ~TlObject ()=default
 

Static Public Attributes

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

Constructor & Destructor Documentation

◆ messageGiveawayCompleted() [1/2]

A giveaway without public winners has been completed for the chat.

◆ messageGiveawayCompleted() [2/2]

messageGiveawayCompleted ( int53  giveaway_message_id_,
int32  winner_count_,
bool  is_star_giveaway_,
int32  unclaimed_prize_count_ 
)

A giveaway without public winners has been completed for the chat.

Parameters
[in]giveaway_message_id_Identifier of the message with the giveaway; can be 0 if the message was deleted.
[in]winner_count_Number of winners in the giveaway.
[in]is_star_giveaway_True, if the giveaway is a Telegram Star giveaway.
[in]unclaimed_prize_count_Number of undistributed prizes; for Telegram Premium giveaways only.

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: