getBusinessAccountGifts
Retrieve gifts received and owned by a managed business account, with filters for saved, unique, limited, and blockchain gifts plus price sorting and pagination.
Instructions
Returns the gifts received and owned by a managed business account. Requires the can_view_gifts_and_stars business bot right. Returns OwnedGifts on success.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"business_connection_id": "<business_connection_id>"
},
"name": "getBusinessAccountGifts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | The maximum number of gifts to be returned; 1-100. Defaults to 100. | |
| offset | No | Offset of the first entry to return as received from the previous request; use empty string to get the first chunk of results | |
| exclude_saved | No | Pass True to exclude gifts that are saved to the account's profile page | |
| sort_by_price | No | Pass True to sort results by gift price instead of send date. Sorting is applied before pagination. | |
| exclude_unique | No | Pass True to exclude unique gifts | |
| exclude_unsaved | No | Pass True to exclude gifts that aren't saved to the account's profile page | |
| exclude_unlimited | No | Pass True to exclude gifts that can be purchased an unlimited number of times | |
| business_connection_id | Yes | Unique identifier of the business connection | |
| exclude_from_blockchain | No | Pass True to exclude gifts that were assigned from the TON blockchain and can't be resold or transferred in Telegram | |
| exclude_limited_upgradable | No | Pass True to exclude gifts that can be purchased a limited number of times and can be upgraded to unique | |
| exclude_limited_non_upgradable | No | Pass True to exclude gifts that can be purchased a limited number of times and can't be upgraded to unique |