Class TdApi.SetGiftResalePrice

Enclosing class:
TdApi

public static class TdApi.SetGiftResalePrice extends TdApi.Function<TdApi.Ok>
Changes resale price of a unique gift owned by the current user.

Returns Ok

  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    Identifier uniquely determining type of the object.
    Identifier of the unique gift.
    long
    The new price for the unique gift; 0 or getOption("gift_resale_star_count_min")-getOption("gift_resale_star_count_max").
  • Constructor Summary

    Constructors
    Constructor
    Description
    Default constructor for a function, which changes resale price of a unique gift owned by the current user.
    SetGiftResalePrice(String receivedGiftId, long resaleStarCount)
    Creates a function, which changes resale price of a unique gift owned by the current user.
  • 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

    • receivedGiftId

      public String receivedGiftId
      Identifier of the unique gift.
    • resaleStarCount

      public long resaleStarCount
      The new price for the unique gift; 0 or getOption("gift_resale_star_count_min")-getOption("gift_resale_star_count_max"). Pass 0 to disallow gift resale. The current user will receive getOption("gift_resale_earnings_per_mille") Telegram Stars for each 1000 Telegram Stars paid for the gift.
    • CONSTRUCTOR

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

    • SetGiftResalePrice

      public SetGiftResalePrice()
      Default constructor for a function, which changes resale price of a unique gift owned by the current user.

      Returns Ok

    • SetGiftResalePrice

      public SetGiftResalePrice(String receivedGiftId, long resaleStarCount)
      Creates a function, which changes resale price of a unique gift owned by the current user.

      Returns Ok

      Parameters:
      receivedGiftId - Identifier of the unique gift.
      resaleStarCount - The new price for the unique gift; 0 or getOption("gift_resale_star_count_min")-getOption("gift_resale_star_count_max"). Pass 0 to disallow gift resale. The current user will receive getOption("gift_resale_earnings_per_mille") Telegram Stars for each 1000 Telegram Stars paid for the gift.
  • 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