get_user_gifts()¶
- Client.get_user_gifts()
Returns the gifts received by the given user or chat.
- Parameters:
user_id (
int|str) – Target user.exclude_unsaved (
bool, optional) – Exclude gifts not saved to profile.exclude_saved (
bool, optional) – Exclude gifts saved to profile.exclude_unlimited (
bool, optional) – Exclude unlimited gifts.exclude_limited (
bool, optional) – Exclude limited gifts.exclude_unique (
bool, optional) – Exclude unique gifts.sort_by_value (
bool, optional) – Sort by value instead of date.offset (
str, optional) – Pagination offset.limit (
int, optional) – Max number to return.
- Returns:
Generator– YieldsGiftobjects.