get_received_gifts


Description:

public async ReceivedGifts get_received_gifts (string business_connection_id, MessageSender owner_id, bool exclude_unsaved, bool exclude_saved, bool exclude_unlimited, bool exclude_limited, bool exclude_upgraded, bool sort_by_price, string offset, int32 limit) throws TDLibError

Returns gifts received by the given user or chat

Parameters:

business_connection_id

Unique identifier of business connection on behalf of which to send the request; for bots only

owner_id

Identifier of the gift receiver

exclude_unsaved

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 can_post_messages administrator right

exclude_saved

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 can_post_messages administrator right

exclude_unlimited

Pass true to exclude gifts that can be purchased unlimited number of times

exclude_limited

Pass true to exclude gifts that can be purchased limited number of times

exclude_upgraded

Pass true to exclude upgraded gifts

sort_by_price

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