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

Inherits Object.

Description

Describes an affiliate program that was connected to an affiliate.

Public Member Functions

 connectedAffiliateProgram ()
 connectedAffiliateProgram (string const &url_, int53 bot_user_id_, object_ptr< affiliateProgramParameters > &&parameters_, int32 connection_date_, bool is_disconnected_, int64 user_count_, int53 revenue_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

int53 bot_user_id_
 User identifier of the bot created the program.
int32 connection_date_
 Point in time (Unix timestamp) when the affiliate program was connected.
bool is_disconnected_
 True, if the program was canceled by the bot, or disconnected by the chat owner and isn't available anymore.
object_ptr< affiliateProgramParameters > parameters_
 The parameters of the affiliate program.
int53 revenue_star_count_
 The number of Telegram Stars that were earned by the affiliate program.
string url_
 The link that can be used to refer users if the program is still active.
int64 user_count_
 The number of users that used the affiliate program.

Static Public Attributes

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

Constructor & Destructor Documentation

◆ connectedAffiliateProgram() [1/2]

connectedAffiliateProgram ( )

Describes an affiliate program that was connected to an affiliate.

◆ connectedAffiliateProgram() [2/2]

connectedAffiliateProgram ( string const & url_,
int53 bot_user_id_,
object_ptr< affiliateProgramParameters > && parameters_,
int32 connection_date_,
bool is_disconnected_,
int64 user_count_,
int53 revenue_star_count_ )

Describes an affiliate program that was connected to an affiliate.

Parameters
[in]url_The link that can be used to refer users if the program is still active.
[in]bot_user_id_User identifier of the bot created the program.
[in]parameters_The parameters of the affiliate program.
[in]connection_date_Point in time (Unix timestamp) when the affiliate program was connected.
[in]is_disconnected_True, if the program was canceled by the bot, or disconnected by the chat owner and isn't available anymore.
[in]user_count_The number of users that used the affiliate program.
[in]revenue_star_count_The number of Telegram Stars that were earned by the affiliate program.

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: