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.intPass collection identifier to get gifts only from the specified collection; pass 0 to get gifts regardless of collections.static final intIdentifier uniquely determining type of the object.booleanPass true to exclude gifts that are just hosted and are not owned by the owner.booleanPass true to exclude gifts that can be purchased limited number of times and can't be upgraded.booleanPass true to exclude gifts that are saved to the chat's profile page.booleanPass true to exclude gifts that can be purchased unlimited number of times.booleanPass true to exclude gifts that aren't saved to the chat's profile page.booleanPass true to exclude gifts that can be purchased limited number of times and can be upgraded.booleanPass true to exclude upgraded gifts.booleanPass true to exclude gifts that can't be used in setUpgradedGiftColors.intThe 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.booleanPass 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, int collectionId, boolean excludeUnsaved, boolean excludeSaved, boolean excludeUnlimited, boolean excludeUpgradable, boolean excludeNonUpgradable, boolean excludeUpgraded, boolean excludeWithoutColors, boolean excludeHosted, boolean sortByPrice, String offset, int limit) Creates a function, which returns gifts received by the given user or chat. -
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
-
businessConnectionId
Unique identifier of business connection on behalf of which to send the request; for bots only. -
ownerId
Identifier of the gift receiver. -
collectionId
public int collectionIdPass collection identifier to get gifts only from the specified collection; pass 0 to get gifts regardless of collections. -
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. -
excludeUpgradable
public boolean excludeUpgradablePass true to exclude gifts that can be purchased limited number of times and can be upgraded. -
excludeNonUpgradable
public boolean excludeNonUpgradablePass true to exclude gifts that can be purchased limited number of times and can't be upgraded. -
excludeUpgraded
public boolean excludeUpgradedPass true to exclude upgraded gifts. -
excludeWithoutColors
public boolean excludeWithoutColorsPass true to exclude gifts that can't be used in setUpgradedGiftColors. -
excludeHosted
public boolean excludeHostedPass true to exclude gifts that are just hosted and are not owned by the owner. -
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, int collectionId, boolean excludeUnsaved, boolean excludeSaved, boolean excludeUnlimited, boolean excludeUpgradable, boolean excludeNonUpgradable, boolean excludeUpgraded, boolean excludeWithoutColors, boolean excludeHosted, 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.collectionId- Pass collection identifier to get gifts only from the specified collection; pass 0 to get gifts regardless of collections.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.excludeUpgradable- Pass true to exclude gifts that can be purchased limited number of times and can be upgraded.excludeNonUpgradable- Pass true to exclude gifts that can be purchased limited number of times and can't be upgraded.excludeUpgraded- Pass true to exclude upgraded gifts.excludeWithoutColors- Pass true to exclude gifts that can't be used in setUpgradedGiftColors.excludeHosted- Pass true to exclude gifts that are just hosted and are not owned by the owner.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.ObjectReturns an identifier uniquely determining type of the object.- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-