upgradeGift
Upgrades a regular Telegram gift to a unique gift using a business connection; requires transfer-and-upgrade rights and transfer-stars rights for paid upgrades.
Instructions
Upgrades a given regular gift to a unique gift. Requires the can_transfer_and_upgrade_gifts business bot right. Additionally requires the can_transfer_stars business bot right if the upgrade is paid. Returns True 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>",
"owned_gift_id": "<owned_gift_id>"
},
"name": "upgradeGift"
}
}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 | |
| owned_gift_id | Yes | Unique identifier of the regular gift that should be upgraded to a unique one | |
| 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 |