Class TdApi.StarTransactionTypeChannelPaidMediaPurchase

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

public static class TdApi.StarTransactionTypeChannelPaidMediaPurchase extends TdApi.StarTransactionType
The transaction is a purchase of paid media from a channel by the current user; for regular users only.
  • Field Details

    • chatId

      public long chatId
      Identifier of the channel chat that sent the paid media.
    • messageId

      public long messageId
      Identifier of the corresponding message with paid media; can be 0 or an identifier of a deleted message.
    • media

      public TdApi.PaidMedia[] media
      The bought media if the transaction wasn't refunded.
    • CONSTRUCTOR

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

    • StarTransactionTypeChannelPaidMediaPurchase

      public StarTransactionTypeChannelPaidMediaPurchase()
      The transaction is a purchase of paid media from a channel by the current user; for regular users only.
    • StarTransactionTypeChannelPaidMediaPurchase

      public StarTransactionTypeChannelPaidMediaPurchase(long chatId, long messageId, TdApi.PaidMedia[] media)
      The transaction is a purchase of paid media from a channel by the current user; for regular users only.
      Parameters:
      chatId - Identifier of the channel chat that sent the paid media.
      messageId - Identifier of the corresponding message with paid media; can be 0 or an identifier of a deleted message.
      media - The bought media if the transaction wasn't refunded.
  • 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