Class TdApi.StarTransactionTypePremiumPurchase

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

public static class TdApi.StarTransactionTypePremiumPurchase extends TdApi.StarTransactionType
The transaction is a purchase of Telegram Premium subscription; relevant for regular users and bots only.
  • Field Details

    • userId

      public long userId
      Identifier of the user who received the Telegram Premium subscription.
    • monthCount

      public int monthCount
      Number of months the Telegram Premium subscription will be active.
    • sticker

      @Nullable public TdApi.Sticker sticker
      A sticker to be shown in the transaction information; may be null if unknown.
    • CONSTRUCTOR

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

    • StarTransactionTypePremiumPurchase

      public StarTransactionTypePremiumPurchase()
      The transaction is a purchase of Telegram Premium subscription; relevant for regular users and bots only.
    • StarTransactionTypePremiumPurchase

      public StarTransactionTypePremiumPurchase(long userId, int monthCount, TdApi.Sticker sticker)
      The transaction is a purchase of Telegram Premium subscription; relevant for regular users and bots only.
      Parameters:
      userId - Identifier of the user who received the Telegram Premium subscription.
      monthCount - Number of months the Telegram Premium subscription will be active.
      sticker - A sticker to be shown in the transaction information; may be null if unknown.
  • Method Details