Class TdApi.ChatBoostSourceGiftCode

Enclosing class:
TdApi

public static class TdApi.ChatBoostSourceGiftCode extends TdApi.ChatBoostSource
The chat created a Telegram Premium gift code for a user.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    Identifier uniquely determining type of the object.
    The created Telegram Premium gift code, which is known only if this is a gift code for the current user, or it has already been claimed.
    long
    Identifier of a user, for which the gift code was created.
  • Constructor Summary

    Constructors
    Constructor
    Description
    The chat created a Telegram Premium gift code for a user.
    ChatBoostSourceGiftCode(long userId, String giftCode)
    The chat created a Telegram Premium gift code for a user.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns an identifier uniquely determining type of the object.

    Methods inherited from class dev.voroby.springframework.telegram.client.TdApi.Object

    toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • userId

      public long userId
      Identifier of a user, for which the gift code was created.
    • giftCode

      public String giftCode
      The created Telegram Premium gift code, which is known only if this is a gift code for the current user, or it has already been claimed.
    • CONSTRUCTOR

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

    • ChatBoostSourceGiftCode

      public ChatBoostSourceGiftCode()
      The chat created a Telegram Premium gift code for a user.
    • ChatBoostSourceGiftCode

      public ChatBoostSourceGiftCode(long userId, String giftCode)
      The chat created a Telegram Premium gift code for a user.
      Parameters:
      userId - Identifier of a user, for which the gift code was created.
      giftCode - The created Telegram Premium gift code, which is known only if this is a gift code for the current user, or it has already been claimed.
  • 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