List of all members | Public Fields | Public Instance Methods | Static Public Attributes
affiliateInfo Class Referencefinal

Inherits Object.

Description

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

Public Fields

int32 commission_per_mille_
 The number of Telegram Stars received by the affiliate for each 1000 Telegram Stars received by the program owner.
 
int53 affiliate_chat_id_
 Identifier of the chat which received the commission.
 
object_ptr< starAmountstar_amount_
 The amount of Telegram Stars that were received by the affiliate; can be negative for refunds.
 

Public Instance Methods

 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 Instance Methods inherited from 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
 

Static Public Attributes

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

Constructor & Destructor Documentation

◆ affiliateInfo() [1/2]

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 amount of Telegram Stars that were received by the affiliate; can be negative for refunds.

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