Package org.drinkless.tdlib
Class TdApi.SearchGiftsForResale
java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.Function<TdApi.GiftsForResale>
org.drinkless.tdlib.TdApi.SearchGiftsForResale
- Enclosing class:
TdApi
Returns upgraded gifts that can be bought from other owners using sendResoldGift.
Returns GiftsForResale
-
Nested Class Summary
Nested classes/interfaces inherited from class org.drinkless.tdlib.TdApi.Function
TdApi.Function.Constructors -
Field Summary
FieldsModifier and TypeFieldDescriptionAttributes used to filter received gifts.static final intIdentifier uniquely determining type of the object.booleanPass true to get only gifts suitable for crafting.booleanPass true to get only gifts that can be bought using Telegram Stars.longIdentifier of the regular gift that was upgraded to a unique gift.intThe maximum number of gifts to return.Offset of the first entry to return as received from the previous request with the same order and attributes; use empty string to get the first chunk of results.Order in which the results will be sorted. -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for a function, which returns upgraded gifts that can be bought from other owners using sendResoldGift.SearchGiftsForResale(long giftId, TdApi.GiftForResaleOrder order, boolean forCrafting, boolean forStars, TdApi.UpgradedGiftAttributeId[] attributes, String offset, int limit) Creates a function, which returns upgraded gifts that can be bought from other owners using sendResoldGift. -
Method Summary
Modifier and TypeMethodDescriptionintReturns an identifier uniquely determining type of the object.Methods inherited from class org.drinkless.tdlib.TdApi.Function
toString
-
Field Details
-
giftId
public long giftIdIdentifier of the regular gift that was upgraded to a unique gift. -
order
Order in which the results will be sorted. -
forCrafting
public boolean forCraftingPass true to get only gifts suitable for crafting. -
forStars
public boolean forStarsPass true to get only gifts that can be bought using Telegram Stars. -
attributes
Attributes used to filter received gifts. If multiple attributes of the same type are specified, then all of them are allowed. If none attributes of specific type are specified, then all values for this attribute type are allowed. -
offset
Offset of the first entry to return as received from the previous request with the same order and attributes; use empty string to get the first chunk of results. -
limit
public int limitThe maximum number of gifts to return. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
SearchGiftsForResale
public SearchGiftsForResale()Default constructor for a function, which returns upgraded gifts that can be bought from other owners using sendResoldGift.Returns
GiftsForResale -
SearchGiftsForResale
public SearchGiftsForResale(long giftId, TdApi.GiftForResaleOrder order, boolean forCrafting, boolean forStars, TdApi.UpgradedGiftAttributeId[] attributes, String offset, int limit) Creates a function, which returns upgraded gifts that can be bought from other owners using sendResoldGift.Returns
GiftsForResale- Parameters:
giftId- Identifier of the regular gift that was upgraded to a unique gift.order- Order in which the results will be sorted.forCrafting- Pass true to get only gifts suitable for crafting.forStars- Pass true to get only gifts that can be bought using Telegram Stars.attributes- Attributes used to filter received gifts. If multiple attributes of the same type are specified, then all of them are allowed. If none attributes of specific type are specified, then all values for this attribute type are allowed.offset- Offset of the first entry to return as received from the previous request with the same order and attributes; use empty string to get the first chunk of results.limit- The maximum number of gifts to return.
-
-
Method Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.ObjectReturns an identifier uniquely determining type of the object.- Specified by:
getConstructorin classTdApi.Function<TdApi.GiftsForResale>- Returns:
- this.CONSTRUCTOR
-