Contains information about the affiliate that received a commission via this transaction.
More...
#include <Types.h>
|
| std::shared_ptr< User > | affiliateUser { } |
| | Optional. The bot or the user that received an affiliate commission if it was received by a bot or a user.
|
| std::shared_ptr< Chat > | affiliateChat { } |
| | Optional. The chat that received an affiliate commission if it was received by a chat.
|
| std::int32_t | commissionPerMille { } |
| | The number of Telegram Stars received by the affiliate for each 1000 Telegram Stars received by the bot from referred users.
|
| std::int32_t | amount { } |
| | Integer amount of Telegram Stars received by the affiliate from the transaction, rounded to 0; can be negative for refunds.
|
| std::optional< std::int32_t > | nanostarAmount { } |
| | Optional. The number of 1/1000000000 shares of Telegram Stars received by the affiliate; from -999999999 to 999999999; can be negative for refunds.
|
Contains information about the affiliate that received a commission via this transaction.
Definition at line 446 of file Types.h.
◆ Ptr
◆ affiliateChat
| std::shared_ptr<Chat> TgBot::AffiliateInfo::affiliateChat { } |
Optional. The chat that received an affiliate commission if it was received by a chat.
Definition at line 458 of file Types.h.
◆ affiliateUser
| std::shared_ptr<User> TgBot::AffiliateInfo::affiliateUser { } |
Optional. The bot or the user that received an affiliate commission if it was received by a bot or a user.
Definition at line 453 of file Types.h.
◆ amount
| std::int32_t TgBot::AffiliateInfo::amount { } |
Integer amount of Telegram Stars received by the affiliate from the transaction, rounded to 0; can be negative for refunds.
Definition at line 470 of file Types.h.
◆ commissionPerMille
| std::int32_t TgBot::AffiliateInfo::commissionPerMille { } |
The number of Telegram Stars received by the affiliate for each 1000 Telegram Stars received by the bot from referred users.
Definition at line 464 of file Types.h.
◆ nanostarAmount
| std::optional<std::int32_t> TgBot::AffiliateInfo::nanostarAmount { } |
Optional. The number of 1/1000000000 shares of Telegram Stars received by the affiliate; from -999999999 to 999999999; can be negative for refunds.
Definition at line 476 of file Types.h.
The documentation for this struct was generated from the following file: