tgbot-cpp
Loading...
Searching...
No Matches
TgBot::TransactionPartnerAffiliateProgram Struct Reference

Describes the affiliate program that issued the affiliate commission received via this transaction. More...

#include <Types.h>

Public Types

using Ptr = std::shared_ptr<TransactionPartnerAffiliateProgram>

Public Attributes

std::string type { TYPE }
 Type of the transaction partner, always “affiliate_program”
std::shared_ptr< UsersponsorUser { }
 Optional. Information about the bot that sponsored the affiliate program.
std::int32_t commissionPerMille { }
 The number of Telegram Stars received by the bot for each 1000 Telegram Stars received by the affiliate program sponsor from referred users.

Static Public Attributes

static TGBOT_API const std::string TYPE

Detailed Description

Describes the affiliate program that issued the affiliate commission received via this transaction.

Definition at line 14110 of file Types.h.

Member Typedef Documentation

◆ Ptr

Member Data Documentation

◆ commissionPerMille

std::int32_t TgBot::TransactionPartnerAffiliateProgram::commissionPerMille { }

The number of Telegram Stars received by the bot for each 1000 Telegram Stars received by the affiliate program sponsor from referred users.

Definition at line 14129 of file Types.h.

◆ sponsorUser

std::shared_ptr<User> TgBot::TransactionPartnerAffiliateProgram::sponsorUser { }

Optional. Information about the bot that sponsored the affiliate program.

Definition at line 14123 of file Types.h.

◆ TYPE

TGBOT_API const std::string TgBot::TransactionPartnerAffiliateProgram::TYPE
static

Definition at line 14113 of file Types.h.

◆ type

std::string TgBot::TransactionPartnerAffiliateProgram::type { TYPE }

Type of the transaction partner, always “affiliate_program”

Definition at line 14118 of file Types.h.


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