|
tgbotxx 1.1.9.2
Telegram Bot C++ Library
|
Contains information about the affiliate that received a commission via a transaction https://core.telegram.org/bots/api#affiliateinfo. More...
#include <AffiliateInfo.hpp>
Public Member Functions | |
| AffiliateInfo ()=default | |
| AffiliateInfo (const nl::json &json) | |
| nl::json | toJson () const |
| Serializes this object to JSON. | |
| void | fromJson (const nl::json &json) |
| Deserializes this object from JSON. | |
Public Attributes | |
| Ptr< User > | affiliateUser |
| Optional. The bot or user that received an affiliate commission. | |
| Ptr< Chat > | affiliateChat |
| Optional. The chat that received an affiliate commission. | |
| std::int32_t | commissionPerMille {} |
| The number of Telegram Stars received by the affiliate for each 1000 Stars received by the bot. | |
| std::int32_t | amount {} |
| Integer amount of Telegram Stars received by the affiliate from the transaction; can be negative for refunds. | |
| std::int32_t | nanostarAmount {} |
| Optional. The number of 1/1000000000 shares of Telegram Stars received by the affiliate; can be negative for refunds. | |
Contains information about the affiliate that received a commission via a transaction https://core.telegram.org/bots/api#affiliateinfo.
Definition at line 10 of file AffiliateInfo.hpp.
|
default |
|
inlineexplicit |
Definition at line 12 of file AffiliateInfo.hpp.
|
inline |
Deserializes this object from JSON.
Definition at line 44 of file AffiliateInfo.hpp.
|
inline |
Serializes this object to JSON.
Definition at line 33 of file AffiliateInfo.hpp.
Optional. The chat that received an affiliate commission.
Definition at line 20 of file AffiliateInfo.hpp.
Optional. The bot or user that received an affiliate commission.
Definition at line 17 of file AffiliateInfo.hpp.
| std::int32_t tgbotxx::AffiliateInfo::amount {} |
Integer amount of Telegram Stars received by the affiliate from the transaction; can be negative for refunds.
Definition at line 26 of file AffiliateInfo.hpp.
| std::int32_t tgbotxx::AffiliateInfo::commissionPerMille {} |
The number of Telegram Stars received by the affiliate for each 1000 Stars received by the bot.
Definition at line 23 of file AffiliateInfo.hpp.
| std::int32_t tgbotxx::AffiliateInfo::nanostarAmount {} |
Optional. The number of 1/1000000000 shares of Telegram Stars received by the affiliate; can be negative for refunds.
Definition at line 29 of file AffiliateInfo.hpp.