getUserGifts
Retrieve gifts received and owned by a Telegram user. Filter by type, exclude unique or unlimited gifts, sort by price, and paginate results using an offset.
Instructions
Returns the gifts received and owned by a given user. Returns an OwnedGifts object on success.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | 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. | |
| user_id | Yes | Unique identifier of the target 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 unlimited number of times. | |
| exclude_from_blockchain | No | Pass True to exclude gifts transferred from the TON blockchain. | |
| exclude_limited_upgradable | No | Pass True to exclude limited gifts that can be upgraded. | |
| exclude_limited_non_upgradable | No | Pass True to exclude limited gifts that cannot be upgraded. |