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

Inherits MessageContent.

Description

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

Public Member Functions

 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 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 giveaway_message_id_
 Identifier of the message with the giveaway; may be 0 or an identifier of a deleted message.
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.
int32 winner_count_
 Number of winners in the giveaway.

Static Public Attributes

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

Constructor & Destructor Documentation

◆ messageGiveawayCompleted() [1/2]

messageGiveawayCompleted ( )

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; may be 0 or an identifier of a deleted message.
[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.

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: