Class TdApi.StarTransactionTypeBotSubscriptionPurchase

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

public static class TdApi.StarTransactionTypeBotSubscriptionPurchase extends TdApi.StarTransactionType
The transaction is a purchase of a subscription from a bot or a business account by the current user; for regular users only.
  • Field Details

    • userId

      public long userId
      Identifier of the bot or the business account user that created the subscription link.
    • subscriptionPeriod

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

      public TdApi.ProductInfo productInfo
      Information about the bought subscription.
    • CONSTRUCTOR

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

    • StarTransactionTypeBotSubscriptionPurchase

      public StarTransactionTypeBotSubscriptionPurchase()
      The transaction is a purchase of a subscription from a bot or a business account by the current user; for regular users only.
    • StarTransactionTypeBotSubscriptionPurchase

      public StarTransactionTypeBotSubscriptionPurchase(long userId, int subscriptionPeriod, TdApi.ProductInfo productInfo)
      The transaction is a purchase of a subscription from a bot or a business account by the current user; for regular users only.
      Parameters:
      userId - Identifier of the bot or the business account user that created the subscription link.
      subscriptionPeriod - The number of seconds between consecutive Telegram Star debitings.
      productInfo - Information about the bought subscription.
  • 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