Package org.drinkless.tdlib
Class TdApi.SetGiftResalePrice
- Enclosing class:
- TdApi
Changes resale price of a unique gift owned by the current user.
Returns Ok
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic 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
ConstructorsConstructorDescriptionDefault 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 TypeMethodDescriptionint
Returns an identifier uniquely determining type of the object.Methods inherited from class org.drinkless.tdlib.TdApi.Function
toString
-
Field Details
-
receivedGiftId
Identifier of the unique gift. -
resaleStarCount
public long resaleStarCountThe 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 CONSTRUCTORIdentifier 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
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 classTdApi.Object
- Returns:
- this.CONSTRUCTOR
-