Class TdApi.StarTransactionTypeBotInvoiceSale

java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.StarTransactionType
org.drinkless.tdlib.TdApi.StarTransactionTypeBotInvoiceSale
Enclosing class:
TdApi

public static class TdApi.StarTransactionTypeBotInvoiceSale extends TdApi.StarTransactionType
The transaction is a sale of a product by the bot; for bots only.
  • Field Details

    • userId

      public long userId
      Identifier of the user that bought the product.
    • productInfo

      public TdApi.ProductInfo productInfo
      Information about the bought product.
    • invoicePayload

      public byte[] invoicePayload
      Invoice payload.
    • affiliate

      public TdApi.AffiliateInfo affiliate
      Information about the affiliate which received commission from the transaction; may be null if none.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      Identifier uniquely determining type of the object.
      See Also:
  • Constructor Details

    • StarTransactionTypeBotInvoiceSale

      public StarTransactionTypeBotInvoiceSale()
      The transaction is a sale of a product by the bot; for bots only.
    • StarTransactionTypeBotInvoiceSale

      public StarTransactionTypeBotInvoiceSale(long userId, TdApi.ProductInfo productInfo, byte[] invoicePayload, TdApi.AffiliateInfo affiliate)
      The transaction is a sale of a product by the bot; for bots only.
      Parameters:
      userId - Identifier of the user that bought the product.
      productInfo - Information about the bought product.
      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 class TdApi.Object
      Returns:
      this.CONSTRUCTOR