Class AffiliateInfo
java.lang.Object
io.github.natanimn.telebof.types.payments.AffiliateInfo
This class Contains information about the affiliate that received a commission via this transaction.
- Since:
- July 3, 2025
- Author:
- Natanim
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ChatThe chat that received an affiliate commission if it was received by a chatprivate UserThe bot or the user that received an affiliate commission if it was received by a bot or a userprivate IntegerInteger amount of Telegram Stars received by the affiliate from the transaction, rounded to 0; can be negative for refundsprivate IntegerThe number of Telegram Stars received by the affiliate for each 1000 Telegram Stars received by the bot from referred usersprivate IntegerThe number of 1/1000000000 shares of Telegram Stars received by the affiliate; from -999999999 to 999999999; can be negative for refunds -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription
-
Field Details
-
affiliateUser
The bot or the user that received an affiliate commission if it was received by a bot or a user -
affiliateChat
The chat that received an affiliate commission if it was received by a chat -
commissionPerMille
The number of Telegram Stars received by the affiliate for each 1000 Telegram Stars received by the bot from referred users -
amount
Integer amount of Telegram Stars received by the affiliate from the transaction, rounded to 0; can be negative for refunds -
nanostarAmount
The number of 1/1000000000 shares of Telegram Stars received by the affiliate; from -999999999 to 999999999; can be negative for refunds
-
-
Constructor Details
-
AffiliateInfo
public AffiliateInfo()
-
-
Method Details
-
getAffiliateUser
-
getAffiliateChat
-
getCommissionPerMille
-
getAmount
-
getNanostarAmount
-