method ApiMethods.upgradeGift
ApiMethods.upgradeGift(args: { business_connection_id: string; owned_gift_id: string; keep_original_details?: boolean; star_count?: number; }): true

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.

Parameters

args: { business_connection_id: string; owned_gift_id: string; keep_original_details?: boolean; star_count?: number; }

Return Type

true

Usage

import { type ApiMethods } from "types";