getChatGifts
Retrieves gifts owned by a specified chat, returning paginated OwnedGifts results with optional filters, price sorting, and exclusions for saved, unique, limited, or blockchain-assigned gifts.
Instructions
Returns the gifts owned by a chat. 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": {
"chat_id": "<chat_id>"
},
"name": "getChatGifts"
}
}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 | |
| chat_id | Yes | Unique identifier for the target chat or username of the target channel in the format `@username` | |
| exclude_saved | No | Pass True to exclude gifts that are saved to the chat's profile page. Always False, unless the bot has the can_post_messages administrator right in the channel. | |
| 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 chat's profile page. Always True, unless the bot has the can_post_messages administrator right in the channel. | |
| 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 |