Class TdApi.StorePaymentPurposeStars

Enclosing class:
TdApi

public static class TdApi.StorePaymentPurposeStars extends TdApi.StorePaymentPurpose
The user buying Telegram Stars.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    long
    Paid amount, in the smallest units of the currency.
    long
    Identifier of the chat that is supposed to receive the Telegram Stars; pass 0 if none.
    static final int
    Identifier uniquely determining type of the object.
    ISO 4217 currency code of the payment currency.
    long
    Number of bought Telegram Stars.
  • Constructor Summary

    Constructors
    Constructor
    Description
    The user buying Telegram Stars.
    StorePaymentPurposeStars(String currency, long amount, long starCount, long chatId)
    The user buying Telegram Stars.
  • 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

    • currency

      public String currency
      ISO 4217 currency code of the payment currency.
    • amount

      public long amount
      Paid amount, in the smallest units of the currency.
    • starCount

      public long starCount
      Number of bought Telegram Stars.
    • chatId

      public long chatId
      Identifier of the chat that is supposed to receive the Telegram Stars; pass 0 if none.
    • CONSTRUCTOR

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

    • StorePaymentPurposeStars

      public StorePaymentPurposeStars()
      The user buying Telegram Stars.
    • StorePaymentPurposeStars

      public StorePaymentPurposeStars(String currency, long amount, long starCount, long chatId)
      The user buying Telegram Stars.
      Parameters:
      currency - ISO 4217 currency code of the payment currency.
      amount - Paid amount, in the smallest units of the currency.
      starCount - Number of bought Telegram Stars.
      chatId - Identifier of the chat that is supposed to receive the Telegram Stars; pass 0 if none.
  • 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