Class TdApi.StarTransactionTypeBotPaidMediaSale

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

public static class TdApi.StarTransactionTypeBotPaidMediaSale extends TdApi.StarTransactionType
The transaction is a sale of paid media by the bot or a business account managed by the bot; for bots only.
  • Field Details

    • userId

      public long userId
      Identifier of the user that bought the media.
    • media

      public TdApi.PaidMedia[] media
      The bought media.
    • payload

      public String payload
      Bot-provided 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

    • StarTransactionTypeBotPaidMediaSale

      public StarTransactionTypeBotPaidMediaSale()
      The transaction is a sale of paid media by the bot or a business account managed by the bot; for bots only.
    • StarTransactionTypeBotPaidMediaSale

      public StarTransactionTypeBotPaidMediaSale(long userId, TdApi.PaidMedia[] media, String payload, TdApi.AffiliateInfo affiliate)
      The transaction is a sale of paid media by the bot or a business account managed by the bot; for bots only.
      Parameters:
      userId - Identifier of the user that bought the media.
      media - The bought media.
      payload - Bot-provided 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