Package org.drinkless.tdlib
Class TdApi.StarTransactionTypeBotSubscriptionSale
java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.StarTransactionType
org.drinkless.tdlib.TdApi.StarTransactionTypeBotSubscriptionSale
- Enclosing class:
- TdApi
The transaction is a sale of a subscription by the bot; for bots only.
-
Field Summary
FieldsModifier and TypeFieldDescriptionInformation about the affiliate which received commission from the transaction; may be null if none.static final int
Identifier uniquely determining type of the object.byte[]
Invoice payload.Information about the bought subscription.int
The number of seconds between consecutive Telegram Star debitings.long
Identifier of the user that bought the subscription. -
Constructor Summary
ConstructorsConstructorDescriptionThe transaction is a sale of a subscription by the bot; for bots only.StarTransactionTypeBotSubscriptionSale
(long userId, int subscriptionPeriod, TdApi.ProductInfo productInfo, byte[] invoicePayload, TdApi.AffiliateInfo affiliate) The transaction is a sale of a subscription by the bot; for bots 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
-
userId
public long userIdIdentifier of the user that bought the subscription. -
subscriptionPeriod
public int subscriptionPeriodThe number of seconds between consecutive Telegram Star debitings. -
productInfo
Information about the bought subscription. -
invoicePayload
public byte[] invoicePayloadInvoice payload. -
affiliate
Information about the affiliate which received commission from the transaction; may be null if none. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
StarTransactionTypeBotSubscriptionSale
public StarTransactionTypeBotSubscriptionSale()The transaction is a sale of a subscription by the bot; for bots only. -
StarTransactionTypeBotSubscriptionSale
public StarTransactionTypeBotSubscriptionSale(long userId, int subscriptionPeriod, TdApi.ProductInfo productInfo, byte[] invoicePayload, TdApi.AffiliateInfo affiliate) The transaction is a sale of a subscription by the bot; for bots only.- Parameters:
userId
- Identifier of the user that bought the subscription.subscriptionPeriod
- The number of seconds between consecutive Telegram Star debitings.productInfo
- Information about the bought subscription.invoicePayload
- Invoice payload.affiliate
- Information about the affiliate which received commission from the transaction; may be null if none.
-
-
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
-