Class TdApi.BuyGiftUpgrade

Enclosing class:
TdApi

public static class TdApi.BuyGiftUpgrade extends TdApi.Function<TdApi.Ok>
Pays for upgrade of a regular gift that is owned by another user or channel chat.

Returns Ok

  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    Identifier uniquely determining type of the object.
    Identifier of the user or the channel chat that owns the gift.
    Prepaid upgrade hash as received along with the gift.
    long
    The amount of Telegram Stars the user agreed to pay for the upgrade; must be equal to gift.upgradeStarCount.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Default constructor for a function, which pays for upgrade of a regular gift that is owned by another user or channel chat.
    BuyGiftUpgrade(TdApi.MessageSender ownerId, String prepaidUpgradeHash, long starCount)
    Creates a function, which pays for upgrade of a regular gift that is owned by another user or channel chat.
  • 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

    • ownerId

      public TdApi.MessageSender ownerId
      Identifier of the user or the channel chat that owns the gift.
    • prepaidUpgradeHash

      public String prepaidUpgradeHash
      Prepaid upgrade hash as received along with the gift.
    • starCount

      public long starCount
      The amount of Telegram Stars the user agreed to pay for the upgrade; must be equal to gift.upgradeStarCount.
    • CONSTRUCTOR

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

    • BuyGiftUpgrade

      public BuyGiftUpgrade()
      Default constructor for a function, which pays for upgrade of a regular gift that is owned by another user or channel chat.

      Returns Ok

    • BuyGiftUpgrade

      public BuyGiftUpgrade(TdApi.MessageSender ownerId, String prepaidUpgradeHash, long starCount)
      Creates a function, which pays for upgrade of a regular gift that is owned by another user or channel chat.

      Returns Ok

      Parameters:
      ownerId - Identifier of the user or the channel chat that owns the gift.
      prepaidUpgradeHash - Prepaid upgrade hash as received along with the gift.
      starCount - The amount of Telegram Stars the user agreed to pay for the upgrade; must be equal to 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