get_business_account_gifts()¶
- Client.get_business_account_gifts()¶
Return the gifts received and owned by a managed business account.
Usable by Users BotsNote
Requires the can_view_gifts_and_stars business bot right.
- Parameters:
business_connection_id (
str) – Unique identifier of business connection on behalf of which to send the request.collection_id (
int, optional) – Pass collection identifier to get gifts only from the specified collection.exclude_unsaved (
bool, optional) – Pass True to exclude gifts that aren’t saved to the account’s profile page.exclude_saved (
bool, optional) – Pass True to exclude gifts that are saved to the account’s profile page.exclude_unlimited (
bool, optional) – Pass True to exclude gifts that can be purchased an unlimited number of times.exclude_upgradable (
bool, optional) – Pass true to exclude gifts that can be purchased limited number of times and can be upgraded.exclude_non_upgradable (
bool, optional) – Pass true to exclude gifts that can be purchased limited number of times and can’t be upgraded.exclude_upgraded (
bool, optional) – Pass True to exclude upgraded gifts.exclude_without_colors (
bool, optional) – Pass True to exclude gifts that can’t be used inset_upgraded_gift_colors().exclude_hosted (
bool, optional) – Pass True to exclude gifts that are just hosted and are not owned by the owner.sort_by_price (
bool, optional) – Pass True to sort results by gift price instead of send date. Sorting is applied before pagination.limit (
int, optional) – The maximum number of gifts to be returned.
- Returns:
Generator– A generator yieldingGiftobjects.
Example
async for gift in app.get_business_account_gifts(connection_id): print(gift)