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

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

Inheritance diagram for td::td_api::affiliateInfo:
td::td_api::Object td::TlObject

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

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

Detailed Description

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

Definition at line 774 of file td_api.h.

Constructor & Destructor Documentation

◆ affiliateInfo() [1/2]

td::td_api::affiliateInfo::affiliateInfo ( )

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

◆ affiliateInfo() [2/2]

td::td_api::affiliateInfo::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 td::td_api::affiliateInfo::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

◆ affiliate_chat_id_

int53 td::td_api::affiliateInfo::affiliate_chat_id_

Identifier of the chat which received the commission.

Definition at line 787 of file td_api.h.

◆ commission_per_mille_

int32 td::td_api::affiliateInfo::commission_per_mille_

The number of Telegram Stars received by the affiliate for each 1000 Telegram Stars received by the program owner.

Definition at line 785 of file td_api.h.

◆ ID

const std::int32_t td::td_api::affiliateInfo::ID = -1312695046
static

Identifier uniquely determining a type of the object.

Definition at line 806 of file td_api.h.

◆ star_amount_

object_ptr<starAmount> td::td_api::affiliateInfo::star_amount_

The Telegram Star amount that was received by the affiliate; can be negative for refunds.

Definition at line 789 of file td_api.h.


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