Package org.drinkless.tdlib
Class TdApi.StarTransactionTypeAffiliateProgramCommission
java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.StarTransactionType
org.drinkless.tdlib.TdApi.StarTransactionTypeAffiliateProgramCommission
- Enclosing class:
- TdApi
public static class TdApi.StarTransactionTypeAffiliateProgramCommission
extends TdApi.StarTransactionType
The transaction is a receiving of a commission from an affiliate program; for regular users, bots and channel chats only.
-
Field Summary
FieldsModifier and TypeFieldDescriptionlong
Identifier of the chat that created the affiliate program.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. -
Constructor Summary
ConstructorsConstructorDescriptionThe transaction is a receiving of a commission from an affiliate program; for regular users, bots and channel chats only.StarTransactionTypeAffiliateProgramCommission
(long chatId, int commissionPerMille) The transaction is a receiving of a commission from an affiliate program; for regular users, bots and channel chats only. -
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
-
chatId
public long chatIdIdentifier of the chat that created the affiliate program. -
commissionPerMille
public int commissionPerMilleThe number of Telegram Stars received by the affiliate for each 1000 Telegram Stars received by the program owner. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
StarTransactionTypeAffiliateProgramCommission
public StarTransactionTypeAffiliateProgramCommission()The transaction is a receiving of a commission from an affiliate program; for regular users, bots and channel chats only. -
StarTransactionTypeAffiliateProgramCommission
public StarTransactionTypeAffiliateProgramCommission(long chatId, int commissionPerMille) The transaction is a receiving of a commission from an affiliate program; for regular users, bots and channel chats only.- Parameters:
chatId
- Identifier of the chat that created the affiliate program.commissionPerMille
- The number of Telegram Stars received by the affiliate for each 1000 Telegram Stars received by the program owner.
-
-
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
-