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

Inherits Object.

Description

Contains information about an affiliate that received commission from a Telegram Star transaction.

Public Member Functions

 affiliateInfo ()
 affiliateInfo (int32 commission_per_mille_, int53 affiliate_chat_id_, object_ptr< starAmount > &&star_amount_)
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 affiliate_chat_id_
 Identifier of the chat which received the commission.
int32 commission_per_mille_
 The number of Telegram Stars received by the affiliate for each 1000 Telegram Stars received by the program owner.
object_ptr< starAmount > star_amount_
 The Telegram Star amount that was received by the affiliate; can be negative for refunds.

Static Public Attributes

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

Constructor & Destructor Documentation

◆ affiliateInfo() [1/2]

affiliateInfo ( )

Contains information about an affiliate that received commission from a Telegram Star transaction.

◆ affiliateInfo() [2/2]

affiliateInfo ( int32 commission_per_mille_,
int53 affiliate_chat_id_,
object_ptr< starAmount > && star_amount_ )

Contains information about an affiliate that received commission from a Telegram Star transaction.

Parameters
[in]commission_per_mille_The number of Telegram Stars received by the affiliate for each 1000 Telegram Stars received by the program owner.
[in]affiliate_chat_id_Identifier of the chat which received the commission.
[in]star_amount_The Telegram Star amount that was received by the affiliate; can be negative for refunds.

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: