Class TdApi.ApplyPremiumGiftCode

Enclosing class:
TdApi

public static class TdApi.ApplyPremiumGiftCode extends TdApi.Function<TdApi.Ok>
Applies a Telegram Premium gift code.

Returns Ok

  • Field Details

    • code

      public String code
      The code to apply.
    • CONSTRUCTOR

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

    • ApplyPremiumGiftCode

      public ApplyPremiumGiftCode()
      Default constructor for a function, which applies a Telegram Premium gift code.

      Returns Ok

    • ApplyPremiumGiftCode

      public ApplyPremiumGiftCode(String code)
      Creates a function, which applies a Telegram Premium gift code.

      Returns Ok

      Parameters:
      code - The code to apply.
  • 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