Class TdApi.UpgradedGift

java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.UpgradedGift
Enclosing class:
TdApi

public static class TdApi.UpgradedGift extends TdApi.Object
Describes an upgraded gift that can be transferred to another owner or transferred to the TON blockchain as an NFT.
  • Field Details

    • id

      public long id
      Unique identifier of the gift.
    • title

      public String title
      The title of the upgraded gift.
    • name

      public String name
      Unique name of the upgraded gift that can be used with internalLinkTypeUpgradedGift or sendResoldGift.
    • number

      public int number
      Unique number of the upgraded gift among gifts upgraded from the same gift.
    • totalUpgradedCount

      public int totalUpgradedCount
      Total number of gifts that were upgraded from the same gift.
    • maxUpgradedCount

      public int maxUpgradedCount
      The maximum number of gifts that can be upgraded from the same gift.
    • ownerId

      public TdApi.MessageSender ownerId
      Identifier of the user or the chat that owns the upgraded gift; may be null if none or unknown.
    • ownerAddress

      public String ownerAddress
      Address of the gift NFT owner in TON blockchain; may be empty if none. Append the address to getOption("ton_blockchain_explorer_url") to get a link with information about the address.
    • ownerName

      public String ownerName
      Name of the owner for the case when owner identifier and address aren't known.
    • giftAddress

      public String giftAddress
      Address of the gift NFT in TON blockchain; may be empty if none. Append the address to getOption("ton_blockchain_explorer_url") to get a link with information about the address.
    • model

      Model of the upgraded gift.
    • symbol

      public TdApi.UpgradedGiftSymbol symbol
      Symbol of the upgraded gift.
    • backdrop

      public TdApi.UpgradedGiftBackdrop backdrop
      Backdrop of the upgraded gift.
    • originalDetails

      public TdApi.UpgradedGiftOriginalDetails originalDetails
      Information about the originally sent gift; may be null if unknown.
    • resaleStarCount

      public long resaleStarCount
      Number of Telegram Stars that must be paid to buy the gift and send it to someone else; 0 if resale isn't possible.
    • CONSTRUCTOR

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

    • UpgradedGift

      public UpgradedGift()
      Describes an upgraded gift that can be transferred to another owner or transferred to the TON blockchain as an NFT.
    • UpgradedGift

      public UpgradedGift(long id, String title, String name, int number, int totalUpgradedCount, int maxUpgradedCount, TdApi.MessageSender ownerId, String ownerAddress, String ownerName, String giftAddress, TdApi.UpgradedGiftModel model, TdApi.UpgradedGiftSymbol symbol, TdApi.UpgradedGiftBackdrop backdrop, TdApi.UpgradedGiftOriginalDetails originalDetails, long resaleStarCount)
      Describes an upgraded gift that can be transferred to another owner or transferred to the TON blockchain as an NFT.
      Parameters:
      id - Unique identifier of the gift.
      title - The title of the upgraded gift.
      name - Unique name of the upgraded gift that can be used with internalLinkTypeUpgradedGift or sendResoldGift.
      number - Unique number of the upgraded gift among gifts upgraded from the same gift.
      totalUpgradedCount - Total number of gifts that were upgraded from the same gift.
      maxUpgradedCount - The maximum number of gifts that can be upgraded from the same gift.
      ownerId - Identifier of the user or the chat that owns the upgraded gift; may be null if none or unknown.
      ownerAddress - Address of the gift NFT owner in TON blockchain; may be empty if none. Append the address to getOption("ton_blockchain_explorer_url") to get a link with information about the address.
      ownerName - Name of the owner for the case when owner identifier and address aren't known.
      giftAddress - Address of the gift NFT in TON blockchain; may be empty if none. Append the address to getOption("ton_blockchain_explorer_url") to get a link with information about the address.
      model - Model of the upgraded gift.
      symbol - Symbol of the upgraded gift.
      backdrop - Backdrop of the upgraded gift.
      originalDetails - Information about the originally sent gift; may be null if unknown.
      resaleStarCount - Number of Telegram Stars that must be paid to buy the gift and send it to someone else; 0 if resale isn't possible.
  • 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