Class TdApi.UpgradeGift

Enclosing class:
TdApi

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

Returns UpgradeGiftResult

  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    Unique 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

    Constructors
    Constructor
    Description
    Default 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 Type
    Method
    Description
    int
    Returns an identifier uniquely determining type of the object.

    Methods inherited from class org.drinkless.tdlib.TdApi.Function

    toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • 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 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 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 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 class TdApi.Object
      Returns:
      this.CONSTRUCTOR