Class TdApi.StorePaymentPurposeStarGiveaway

Enclosing class:
TdApi

public static class TdApi.StorePaymentPurposeStarGiveaway extends TdApi.StorePaymentPurpose
The user creating a Telegram Star giveaway.
  • Field Details

    • parameters

      public TdApi.GiveawayParameters parameters
      Giveaway parameters.
    • 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.
    • winnerCount

      public int winnerCount
      The number of users to receive Telegram Stars.
    • starCount

      public long starCount
      The number of Telegram Stars to be distributed through the giveaway.
    • CONSTRUCTOR

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

    • StorePaymentPurposeStarGiveaway

      public StorePaymentPurposeStarGiveaway()
      The user creating a Telegram Star giveaway.
    • StorePaymentPurposeStarGiveaway

      public StorePaymentPurposeStarGiveaway(TdApi.GiveawayParameters parameters, String currency, long amount, int winnerCount, long starCount)
      The user creating a Telegram Star giveaway.
      Parameters:
      parameters - Giveaway parameters.
      currency - ISO 4217 currency code of the payment currency.
      amount - Paid amount, in the smallest units of the currency.
      winnerCount - The number of users to receive Telegram Stars.
      starCount - The number of Telegram Stars to be distributed through the giveaway.
  • 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