Class TdApi.LaunchPrepaidGiveaway

Enclosing class:
TdApi

public static class TdApi.LaunchPrepaidGiveaway extends TdApi.Function<TdApi.Ok>
Launches a prepaid giveaway.

Returns Ok

  • Field Details

    • giveawayId

      public long giveawayId
      Unique identifier of the prepaid giveaway.
    • parameters

      public TdApi.GiveawayParameters parameters
      Giveaway parameters.
    • winnerCount

      public int winnerCount
      The number of users to receive giveaway prize.
    • starCount

      public long starCount
      The number of Telegram Stars to be distributed through the giveaway; pass 0 for Telegram Premium giveaways.
    • CONSTRUCTOR

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

    • LaunchPrepaidGiveaway

      public LaunchPrepaidGiveaway()
      Default constructor for a function, which launches a prepaid giveaway.

      Returns Ok

    • LaunchPrepaidGiveaway

      public LaunchPrepaidGiveaway(long giveawayId, TdApi.GiveawayParameters parameters, int winnerCount, long starCount)
      Creates a function, which launches a prepaid giveaway.

      Returns Ok

      Parameters:
      giveawayId - Unique identifier of the prepaid giveaway.
      parameters - Giveaway parameters.
      winnerCount - The number of users to receive giveaway prize.
      starCount - The number of Telegram Stars to be distributed through the giveaway; pass 0 for Telegram Premium giveaways.
  • 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