Package org.drinkless.tdlib
Class TdApi.GetReceivedGifts
- Enclosing class:
- TdApi
Returns gifts received by the given user or chat.
Returns ReceivedGifts
-
Field Summary
FieldsModifier and TypeFieldDescriptionUnique 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 exclude gifts that can be purchased limited number of times.boolean
Pass true to exclude gifts that are saved to the chat's profile page.boolean
Pass true to exclude gifts that can be purchased unlimited number of times.boolean
Pass true to exclude gifts that aren't saved to the chat's profile page.boolean
Pass true to exclude upgraded gifts.int
The maximum number of gifts to be returned; must be positive and can't be greater than 100.Offset of the first entry to return as received from the previous request; use empty string to get the first chunk of results.Identifier of the gift receiver.boolean
Pass true to sort results by gift price instead of send date. -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for a function, which returns gifts received by the given user or chat.GetReceivedGifts
(String businessConnectionId, TdApi.MessageSender ownerId, boolean excludeUnsaved, boolean excludeSaved, boolean excludeUnlimited, boolean excludeLimited, boolean excludeUpgraded, boolean sortByPrice, String offset, int limit) Creates a function, which returns gifts received by the given user or chat. -
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
-
businessConnectionId
Unique identifier of business connection on behalf of which to send the request; for bots only. -
ownerId
Identifier of the gift receiver. -
excludeUnsaved
public boolean excludeUnsavedPass true to exclude gifts that aren't saved to the chat's profile page. Always true for gifts received by other users and channel chats without canPostMessages administrator right. -
excludeSaved
public boolean excludeSavedPass true to exclude gifts that are saved to the chat's profile page. Always false for gifts received by other users and channel chats without canPostMessages administrator right. -
excludeUnlimited
public boolean excludeUnlimitedPass true to exclude gifts that can be purchased unlimited number of times. -
excludeLimited
public boolean excludeLimitedPass true to exclude gifts that can be purchased limited number of times. -
excludeUpgraded
public boolean excludeUpgradedPass true to exclude upgraded gifts. -
sortByPrice
public boolean sortByPricePass true to sort results by gift price instead of send date. -
offset
Offset of the first entry to return as received from the previous request; use empty string to get the first chunk of results. -
limit
public int limitThe maximum number of gifts to be returned; must be positive and can't be greater than 100. For optimal performance, the number of returned objects is chosen by TDLib and can be smaller than the specified limit. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
GetReceivedGifts
public GetReceivedGifts()Default constructor for a function, which returns gifts received by the given user or chat.Returns
ReceivedGifts
-
GetReceivedGifts
public GetReceivedGifts(String businessConnectionId, TdApi.MessageSender ownerId, boolean excludeUnsaved, boolean excludeSaved, boolean excludeUnlimited, boolean excludeLimited, boolean excludeUpgraded, boolean sortByPrice, String offset, int limit) Creates a function, which returns gifts received by the given user or chat.Returns
ReceivedGifts
- Parameters:
businessConnectionId
- Unique identifier of business connection on behalf of which to send the request; for bots only.ownerId
- Identifier of the gift receiver.excludeUnsaved
- Pass true to exclude gifts that aren't saved to the chat's profile page. Always true for gifts received by other users and channel chats without canPostMessages administrator right.excludeSaved
- Pass true to exclude gifts that are saved to the chat's profile page. Always false for gifts received by other users and channel chats without canPostMessages administrator right.excludeUnlimited
- Pass true to exclude gifts that can be purchased unlimited number of times.excludeLimited
- Pass true to exclude gifts that can be purchased limited number of times.excludeUpgraded
- Pass true to exclude upgraded gifts.sortByPrice
- Pass true to sort results by gift price instead of send date.offset
- Offset of the first entry to return as received from the previous request; use empty string to get the first chunk of results.limit
- The maximum number of gifts to be returned; must be positive and can't be greater than 100. For optimal performance, the number of returned objects is chosen by TDLib and can be smaller than the specified limit.
-
-
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
-