Package org.drinkless.tdlib

# 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; relevant for regular users only.

- ## Nested Class Summary

  ## Nested classes/interfaces inherited from class org.drinkless.tdlib.TdApi.StarTransactionType

  `TdApi.StarTransactionType.Constructors`

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `long`
  `chatId`
  Identifier of the channel chat that sent the paid media.
  `static final int`
  `CONSTRUCTOR`
  Identifier uniquely determining type of the object.
  `TdApi.PaidMedia[]`
  `media`
  The bought media if the transaction wasn't refunded.
  `long`
  `messageId`
  Identifier of the corresponding message with paid media; may be 0 or an identifier of a deleted message.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `StarTransactionTypeChannelPaidMediaPurchase()`
  The transaction is a purchase of paid media from a channel by the current user; relevant for regular users only.
  `StarTransactionTypeChannelPaidMediaPurchase(long chatId, long messageId, TdApi.PaidMedia[] media)`
  The transaction is a purchase of paid media from a channel by the current user; relevant for regular users only.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `int`
  `getConstructor()`
  Returns an identifier uniquely determining type of the object.

  ### Methods inherited from class org.drinkless.tdlib.TdApi.Object

  `toString`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- ## 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; may 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:
      - Constant Field Values

- ## Constructor Details

  - ### StarTransactionTypeChannelPaidMediaPurchase

    public StarTransactionTypeChannelPaidMediaPurchase()
    The transaction is a purchase of paid media from a channel by the current user; relevant 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; relevant 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; may 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.StarTransactionType`
    Returns:
      this.CONSTRUCTOR