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; for regular users and bots only.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    Identifier uniquely determining type of the object.
    int
    Number of months the Telegram Premium subscription will be active.
    A sticker to be shown in the transaction information; may be null if unknown.
    long
    Identifier of the user that received the Telegram Premium subscription.
  • Constructor Summary

    Constructors
    Constructor
    Description
    The transaction is a purchase of Telegram Premium subscription; for regular users and bots only.
    StarTransactionTypePremiumPurchase(long userId, int monthCount, TdApi.Sticker sticker)
    The transaction is a purchase of Telegram Premium subscription; for regular users and bots only.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    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

    • userId

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

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

      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; 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; for regular users and bots only.
      Parameters:
      userId - Identifier of the user that 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

    • 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