Package org.drinkless.tdlib
Class TdApi.UpgradedGift
java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.UpgradedGift
- Enclosing class:
- TdApi
Describes an upgraded gift that can be transferred to another owner or transferred to the TON blockchain as an NFT.
-
Field Summary
FieldsModifier and TypeFieldDescriptionBackdrop of the upgraded gift.static final int
Identifier uniquely determining type of the object.Address of the gift NFT in TON blockchain; may be empty if none.long
Unique identifier of the gift.int
The maximum number of gifts that can be upgraded from the same gift.Model of the upgraded gift.Unique name of the upgraded gift that can be used with internalLinkTypeUpgradedGift or sendResoldGift.int
Unique number of the upgraded gift among gifts upgraded from the same gift.Information about the originally sent gift; may be null if unknown.Address of the gift NFT owner in TON blockchain; may be empty if none.Identifier of the user or the chat that owns the upgraded gift; may be null if none or unknown.Name of the owner for the case when owner identifier and address aren't known.long
Number of Telegram Stars that must be paid to buy the gift and send it to someone else; 0 if resale isn't possible.Symbol of the upgraded gift.The title of the upgraded gift.int
Total number of gifts that were upgraded from the same gift. -
Constructor Summary
ConstructorsConstructorDescriptionDescribes an upgraded gift that can be transferred to another owner or transferred to the TON blockchain as an NFT.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. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns an identifier uniquely determining type of the object.Methods inherited from class org.drinkless.tdlib.TdApi.Object
toString
-
Field Details
-
id
public long idUnique 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
public int numberUnique number of the upgraded gift among gifts upgraded from the same gift. -
totalUpgradedCount
public int totalUpgradedCountTotal number of gifts that were upgraded from the same gift. -
maxUpgradedCount
public int maxUpgradedCountThe 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
public long resaleStarCountNumber 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 CONSTRUCTORIdentifier 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 classTdApi.Object
- Returns:
- this.CONSTRUCTOR
-