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

Inherits Function.

Description

Launches a prepaid giveaway.

Returns object_ptr<Ok>.

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

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

Static Public Attributes

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

Constructor & Destructor Documentation

◆ launchPrepaidGiveaway() [1/2]

launchPrepaidGiveaway ( )

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

Returns object_ptr<Ok>.

◆ launchPrepaidGiveaway() [2/2]

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