Package org.drinkless.tdlib
Class TdApi.UpgradeGift
- Enclosing class:
- TdApi
Upgrades a regular gift.
Returns UpgradeGiftResult
-
Field Summary
FieldsModifier and TypeFieldDescriptionUnique identifier of business connection on behalf of which to send the request; for bots only.static final int
Identifier uniquely determining type of the object.boolean
Pass true to keep the original gift text, sender and receiver in the upgraded gift.Identifier of the gift.long
The amount of Telegram Stars required to pay for the upgrade. -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for a function, which upgrades a regular gift.UpgradeGift
(String businessConnectionId, String receivedGiftId, boolean keepOriginalDetails, long starCount) Creates a function, which upgrades a regular gift. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns an identifier uniquely determining type of the object.Methods inherited from class org.drinkless.tdlib.TdApi.Function
toString
-
Field Details
-
businessConnectionId
Unique identifier of business connection on behalf of which to send the request; for bots only. -
receivedGiftId
Identifier of the gift. -
keepOriginalDetails
public boolean keepOriginalDetailsPass true to keep the original gift text, sender and receiver in the upgraded gift. -
starCount
public long starCountThe amount of Telegram Stars required to pay for the upgrade. It the gift has prepaidUpgradeStarCount > 0, then pass 0, otherwise, pass gift.upgradeStarCount. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
UpgradeGift
public UpgradeGift()Default constructor for a function, which upgrades a regular gift.Returns
UpgradeGiftResult
-
UpgradeGift
public UpgradeGift(String businessConnectionId, String receivedGiftId, boolean keepOriginalDetails, long starCount) Creates a function, which upgrades a regular gift.Returns
UpgradeGiftResult
- Parameters:
businessConnectionId
- Unique identifier of business connection on behalf of which to send the request; for bots only.receivedGiftId
- Identifier of the gift.keepOriginalDetails
- Pass true to keep the original gift text, sender and receiver in the upgraded gift.starCount
- The amount of Telegram Stars required to pay for the upgrade. It the gift has prepaidUpgradeStarCount > 0, then pass 0, otherwise, pass gift.upgradeStarCount.
-
-
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
-