Class TdApi.StarTransactionTypeChannelSubscriptionPurchase

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

public static class TdApi.StarTransactionTypeChannelSubscriptionPurchase extends TdApi.StarTransactionType
The transaction is a purchase of a subscription to a channel chat by the current user; for regular users only.
  • Field Details

    • chatId

      public long chatId
      Identifier of the channel chat that created 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

    • StarTransactionTypeChannelSubscriptionPurchase

      public StarTransactionTypeChannelSubscriptionPurchase()
      The transaction is a purchase of a subscription to a channel chat by the current user; for regular users only.
    • StarTransactionTypeChannelSubscriptionPurchase

      public StarTransactionTypeChannelSubscriptionPurchase(long chatId, int subscriptionPeriod)
      The transaction is a purchase of a subscription to a channel chat by the current user; for regular users only.
      Parameters:
      chatId - Identifier of the channel chat that created 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