{ "meta": {}, "group": { "title": "Available methods", "anchor": "available-methods" }, "object": { "anchor": "upgradegift", "name": "upgradeGift", "description": "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.", "html_description": "

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.

", "rst_description": "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 :code:`True` on success.", "annotations": [ { "type": "String", "required": true, "description": "Unique identifier of the business connection", "html_description": "Unique identifier of the business connection", "rst_description": "Unique identifier of the business connection\n", "name": "business_connection_id" }, { "type": "String", "required": true, "description": "Unique identifier of the regular gift that should be upgraded to a unique one", "html_description": "Unique identifier of the regular gift that should be upgraded to a unique one", "rst_description": "Unique identifier of the regular gift that should be upgraded to a unique one\n", "name": "owned_gift_id" }, { "type": "Boolean", "required": false, "description": "Pass True to keep the original gift text, sender and receiver in the upgraded gift", "html_description": "Pass True to keep the original gift text, sender and receiver in the upgraded gift", "rst_description": "Pass :code:`True` to keep the original gift text, sender and receiver in the upgraded gift\n", "name": "keep_original_details" }, { "type": "Integer", "required": false, "description": "The amount of Telegram Stars that will be paid for the upgrade from the business account balance. If gift.prepaid_upgrade_star_count > 0, then pass 0, otherwise, the can_transfer_stars business bot right is required and gift.upgrade_star_count must be passed.", "html_description": "The amount of Telegram Stars that will be paid for the upgrade from the business account balance. If gift.prepaid_upgrade_star_count > 0, then pass 0, otherwise, the can_transfer_stars business bot right is required and gift.upgrade_star_count must be passed.", "rst_description": "The amount of Telegram Stars that will be paid for the upgrade from the business account balance. If :code:`gift.prepaid_upgrade_star_count > 0`, then pass 0, otherwise, the *can_transfer_stars* business bot right is required and :code:`gift.upgrade_star_count` must be passed.\n", "name": "star_count" } ], "category": "methods" } }