Interface BuyGiftUpgrade

Pays for upgrade of a regular gift that is owned by another user or channel chat. Request type for Tdjson#buyGiftUpgrade.

interface BuyGiftUpgrade {
    @type: "buyGiftUpgrade";
    owner_id: MessageSender;
    prepaid_upgrade_hash: string;
    star_count: number;
}

Properties

@type: "buyGiftUpgrade"
owner_id: MessageSender

Identifier of the user or the channel chat that owns the gift.

prepaid_upgrade_hash: string

Prepaid upgrade hash as received along with the gift.

star_count: number

The amount of Telegram Stars the user agreed to pay for the upgrade; must be equal to gift.upgrade_star_count.