getUserGifts
Retrieves the gifts a user owns or hosts, with pagination, sorting, and filters for gift type or blockchain status. Use it to inspect a user's gift collection and hosting records.
Instructions
Returns the gifts owned and hosted by a user. 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": {
"user_id": "<user_id>"
},
"name": "getUserGifts"
}
}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 an empty string to get the first chunk of results | |
| user_id | Yes | Unique identifier of the user | |
| 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_unlimited | No | Pass True to exclude gifts that can be purchased an unlimited number of times | |
| 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 |