Package org.drinkless.tdlib

# Class TdApi.UpgradedGiftOriginUpgrade

java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.UpgradedGiftOrigin
org.drinkless.tdlib.TdApi.UpgradedGiftOriginUpgrade

Enclosing class:
  `TdApi`

public static class TdApi.UpgradedGiftOriginUpgrade extends TdApi.UpgradedGiftOrigin
The gift was obtained by upgrading of a previously received gift.

- ## Nested Class Summary

  ## Nested classes/interfaces inherited from class org.drinkless.tdlib.TdApi.UpgradedGiftOrigin

  `TdApi.UpgradedGiftOrigin.Constructors`

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `static final int`
  `CONSTRUCTOR`
  Identifier uniquely determining type of the object.
  `long`
  `giftMessageId`
  Identifier of the message with the regular gift that was upgraded; may be 0 or an identifier of a deleted message.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `UpgradedGiftOriginUpgrade()`
  The gift was obtained by upgrading of a previously received gift.
  `UpgradedGiftOriginUpgrade(long giftMessageId)`
  The gift was obtained by upgrading of a previously received gift.

- ## Method Summary

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

  ### Methods inherited from class org.drinkless.tdlib.TdApi.Object

  `toString`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- ## Field Details

  - ### giftMessageId

    public long giftMessageId
    Identifier of the message with the regular gift that was upgraded; may be 0 or an identifier of a deleted message.

  - ### CONSTRUCTOR

    public static final int CONSTRUCTOR
    Identifier uniquely determining type of the object.
    See Also:
      - Constant Field Values

- ## Constructor Details

  - ### UpgradedGiftOriginUpgrade

    public UpgradedGiftOriginUpgrade()
    The gift was obtained by upgrading of a previously received gift.

  - ### UpgradedGiftOriginUpgrade

    public UpgradedGiftOriginUpgrade(long giftMessageId)
    The gift was obtained by upgrading of a previously received gift.
    Parameters:
      `giftMessageId` - Identifier of the message with the regular gift that was upgraded; may be 0 or an identifier of a deleted message.

- ## 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.UpgradedGiftOrigin`
    Returns:
      this.CONSTRUCTOR