Class TdApi.InternalLinkTypePremiumGiftCode

Enclosing class:
TdApi

public static class TdApi.InternalLinkTypePremiumGiftCode extends TdApi.InternalLinkType
The link is a link with a Telegram Premium gift code. Call checkPremiumGiftCode with the given code to process the link. If the code is valid and the user wants to apply it, then call applyPremiumGiftCode.
  • Field Details

    • code

      public String code
      The Telegram Premium gift code.
    • CONSTRUCTOR

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

    • InternalLinkTypePremiumGiftCode

      public InternalLinkTypePremiumGiftCode()
      The link is a link with a Telegram Premium gift code. Call checkPremiumGiftCode with the given code to process the link. If the code is valid and the user wants to apply it, then call applyPremiumGiftCode.
    • InternalLinkTypePremiumGiftCode

      public InternalLinkTypePremiumGiftCode(String code)
      The link is a link with a Telegram Premium gift code. Call checkPremiumGiftCode with the given code to process the link. If the code is valid and the user wants to apply it, then call applyPremiumGiftCode.
      Parameters:
      code - The Telegram Premium gift code.
  • 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