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::launchPrepaidGiveaway Class Referencefinal

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

Inheritance diagram for td::td_api::launchPrepaidGiveaway:
td::td_api::Function td::TlObject

Public Types

using ReturnType = object_ptr< ok >
 Typedef for the type returned by the function.
 

Public Member Functions

 launchPrepaidGiveaway ()
 
 launchPrepaidGiveaway (int64 giveaway_id_, object_ptr< giveawayParameters > &&parameters_, int32 winner_count_, int53 star_count_)
 
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

int64 giveaway_id_
 Unique identifier of the prepaid giveaway.
 
object_ptr< giveawayParametersparameters_
 Giveaway parameters.
 
int32 winner_count_
 The number of users to receive giveaway prize.
 
int53 star_count_
 The number of Telegram Stars to be distributed through the giveaway; pass 0 for Telegram Premium giveaways.
 

Static Public Attributes

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

Detailed Description

Launches a prepaid giveaway.

Returns object_ptr<Ok>.

Definition at line 116719 of file td_api.h.

Member Typedef Documentation

◆ ReturnType

Typedef for the type returned by the function.

Definition at line 116761 of file td_api.h.

Constructor & Destructor Documentation

◆ launchPrepaidGiveaway() [1/2]

td::td_api::launchPrepaidGiveaway::launchPrepaidGiveaway ( )

Default constructor for a function, which launches a prepaid giveaway.

Returns object_ptr<Ok>.

◆ launchPrepaidGiveaway() [2/2]

td::td_api::launchPrepaidGiveaway::launchPrepaidGiveaway ( int64  giveaway_id_,
object_ptr< giveawayParameters > &&  parameters_,
int32  winner_count_,
int53  star_count_ 
)

Creates a function, which launches a prepaid giveaway.

Returns object_ptr<Ok>.

Parameters
[in]giveaway_id_Unique identifier of the prepaid giveaway.
[in]parameters_Giveaway parameters.
[in]winner_count_The number of users to receive giveaway prize.
[in]star_count_The number of Telegram Stars to be distributed through the giveaway; pass 0 for Telegram Premium giveaways.

Member Function Documentation

◆ store()

void td::td_api::launchPrepaidGiveaway::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

◆ giveaway_id_

int64 td::td_api::launchPrepaidGiveaway::giveaway_id_

Unique identifier of the prepaid giveaway.

Definition at line 116730 of file td_api.h.

◆ ID

const std::int32_t td::td_api::launchPrepaidGiveaway::ID = 639465530
static

Identifier uniquely determining a type of the object.

Definition at line 116758 of file td_api.h.

◆ parameters_

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

Giveaway parameters.

Definition at line 116732 of file td_api.h.

◆ star_count_

int53 td::td_api::launchPrepaidGiveaway::star_count_

The number of Telegram Stars to be distributed through the giveaway; pass 0 for Telegram Premium giveaways.

Definition at line 116736 of file td_api.h.

◆ winner_count_

int32 td::td_api::launchPrepaidGiveaway::winner_count_

The number of users to receive giveaway prize.

Definition at line 116734 of file td_api.h.


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