tdlib-obf API
Reference documentation for the public tdlib-obf API, generated from TDLib schemas and public headers
Loading...
Searching...
No Matches
td::td_api::messageGiveaway Class Referencefinal

#include </home/runner/work/tdlib-obf/tdlib-obf/td/generate/auto/td/telegram/td_api.h>

Inheritance diagram for td::td_api::messageGiveaway:
td::td_api::MessageContent td::td_api::Object td::TlObject

Public Member Functions

 messageGiveaway ()
 
 messageGiveaway (object_ptr< giveawayParameters > &&parameters_, int32 winner_count_, object_ptr< GiveawayPrize > &&prize_, object_ptr< sticker > &&sticker_)
 
void store (TlStorerToString &s, const char *field_name) const final
 
- Public Member Functions inherited from td::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
 

Public Attributes

object_ptr< giveawayParametersparameters_
 Giveaway parameters.
 
int32 winner_count_
 Number of users which will receive Telegram Premium subscription gift codes.
 
object_ptr< GiveawayPrizeprize_
 Prize of the giveaway.
 
object_ptr< stickersticker_
 A sticker to be shown in the message; may be null if unknown.
 

Static Public Attributes

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

Detailed Description

A giveaway.

Definition at line 41878 of file td_api.h.

Constructor & Destructor Documentation

◆ messageGiveaway() [1/2]

td::td_api::messageGiveaway::messageGiveaway ( )

A giveaway.

◆ messageGiveaway() [2/2]

td::td_api::messageGiveaway::messageGiveaway ( object_ptr< giveawayParameters > &&  parameters_,
int32  winner_count_,
object_ptr< GiveawayPrize > &&  prize_,
object_ptr< sticker > &&  sticker_ 
)

A giveaway.

Parameters
[in]parameters_Giveaway parameters.
[in]winner_count_Number of users which will receive Telegram Premium subscription gift codes.
[in]prize_Prize of the giveaway.
[in]sticker_A sticker to be shown in the message; may be null if unknown.

Member Function Documentation

◆ store()

void td::td_api::messageGiveaway::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 td::TlObject.

Member Data Documentation

◆ ID

const std::int32_t td::td_api::messageGiveaway::ID = -345908568
static

Identifier uniquely determining a type of the object.

Definition at line 41913 of file td_api.h.

◆ parameters_

object_ptr<giveawayParameters> td::td_api::messageGiveaway::parameters_

Giveaway parameters.

Definition at line 41889 of file td_api.h.

◆ prize_

object_ptr<GiveawayPrize> td::td_api::messageGiveaway::prize_

Prize of the giveaway.

Definition at line 41893 of file td_api.h.

◆ sticker_

object_ptr<sticker> td::td_api::messageGiveaway::sticker_

A sticker to be shown in the message; may be null if unknown.

Definition at line 41895 of file td_api.h.

◆ winner_count_

int32 td::td_api::messageGiveaway::winner_count_

Number of users which will receive Telegram Premium subscription gift codes.

Definition at line 41891 of file td_api.h.


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