Class TdApi.UpgradeGift

Enclosing class:
TdApi

public static class TdApi.UpgradeGift extends TdApi.Function<TdApi.UpgradeGiftResult>
Upgrades a regular gift.

Returns UpgradeGiftResult

  • Field Details

    • businessConnectionId

      public String businessConnectionId
      Unique identifier of business connection on behalf of which to send the request; for bots only.
    • receivedGiftId

      public String receivedGiftId
      Identifier of the gift.
    • keepOriginalDetails

      public boolean keepOriginalDetails
      Pass true to keep the original gift text, sender and receiver in the upgraded gift.
    • starCount

      public long starCount
      The Telegram Star amount required to pay for the upgrade. It the gift has prepaidUpgradeStarCount > 0, then pass 0, otherwise, pass gift.upgradeStarCount.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      Identifier 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 Telegram Star amount required to pay for the upgrade. It the gift has prepaidUpgradeStarCount > 0, then pass 0, otherwise, pass gift.upgradeStarCount.
  • Method Details