Package org.drinkless.tdlib
Class TdApi.AffiliateInfo
java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.AffiliateInfo
- Enclosing class:
- TdApi
Contains information about an affiliate that received commission from a Telegram Star transaction.
-
Field Summary
FieldsModifier and TypeFieldDescriptionlong
Identifier of the chat which received the commission.int
The number of Telegram Stars received by the affiliate for each 1000 Telegram Stars received by the program owner.static final int
Identifier uniquely determining type of the object.The amount of Telegram Stars that were received by the affiliate; can be negative for refunds. -
Constructor Summary
ConstructorsConstructorDescriptionContains information about an affiliate that received commission from a Telegram Star transaction.AffiliateInfo
(int commissionPerMille, long affiliateChatId, TdApi.StarAmount starAmount) Contains information about an affiliate that received commission from a Telegram Star transaction. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns an identifier uniquely determining type of the object.Methods inherited from class org.drinkless.tdlib.TdApi.Object
toString
-
Field Details
-
commissionPerMille
public int commissionPerMilleThe number of Telegram Stars received by the affiliate for each 1000 Telegram Stars received by the program owner. -
affiliateChatId
public long affiliateChatIdIdentifier of the chat which received the commission. -
starAmount
The amount of Telegram Stars that were received by the affiliate; can be negative for refunds. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
AffiliateInfo
public AffiliateInfo()Contains information about an affiliate that received commission from a Telegram Star transaction. -
AffiliateInfo
Contains information about an affiliate that received commission from a Telegram Star transaction.- Parameters:
commissionPerMille
- The number of Telegram Stars received by the affiliate for each 1000 Telegram Stars received by the program owner.affiliateChatId
- Identifier of the chat which received the commission.starAmount
- The amount of Telegram Stars that were received by the affiliate; can be negative for refunds.
-
-
Method Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.Object
Returns an identifier uniquely determining type of the object.- Specified by:
getConstructor
in classTdApi.Object
- Returns:
- this.CONSTRUCTOR
-