Interface UpgradeGift

Upgrades a regular gift. Request type for Tdjson#upgradeGift.

interface UpgradeGift {
    @type: "upgradeGift";
    keep_original_details?: boolean;
    received_gift_id: string;
    star_count: number;
}

Properties

@type: "upgradeGift"
keep_original_details?: boolean

Pass true to keep the original gift text, sender and receiver in the upgraded gift.

received_gift_id: string

Identifier of the gift.

star_count: number

The amount of Telegram Stars required to pay for the upgrade. It the gift has prepaid_upgrade_star_count > 0, then pass 0, otherwise, pass gift.upgrade_star_count.