Class TdApi.StarTransactionTypeChannelSubscriptionSale

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

public static class TdApi.StarTransactionTypeChannelSubscriptionSale extends TdApi.StarTransactionType
The transaction is a sale of a subscription by the channel chat; for channel chats only.
  • Field Details

    • userId

      public long userId
      Identifier of the user that bought the subscription.
    • subscriptionPeriod

      public int subscriptionPeriod
      The number of seconds between consecutive Telegram Star debitings.
    • CONSTRUCTOR

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

    • StarTransactionTypeChannelSubscriptionSale

      public StarTransactionTypeChannelSubscriptionSale()
      The transaction is a sale of a subscription by the channel chat; for channel chats only.
    • StarTransactionTypeChannelSubscriptionSale

      public StarTransactionTypeChannelSubscriptionSale(long userId, int subscriptionPeriod)
      The transaction is a sale of a subscription by the channel chat; for channel chats only.
      Parameters:
      userId - Identifier of the user that bought the subscription.
      subscriptionPeriod - The number of seconds between consecutive Telegram Star debitings.
  • 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