Interface GetUpgradedGiftDepositInfo

Returns information needed to deposit an upgraded gift from the TON wallet of the current user to a Telegram account. Use sendTonWalletTransaction to complete the transfer of the gift. The gift will be received by the new owner with a message about the gift after the transfer is confirmed on the blockchain. Request type for Tdjson#getUpgradedGiftDepositInfo.

interface GetUpgradedGiftDepositInfo {
    @type: "getUpgradedGiftDepositInfo";
    hide_sender?: boolean;
    name: string;
    owner_id: MessageSender;
}

Properties

@type: "getUpgradedGiftDepositInfo"
hide_sender?: boolean

Pass true to hide the sender of the gift in the message received by the new owner.

name: string

Unique name of the upgraded gift.

owner_id: MessageSender

Identifier of the user or the channel chat that will receive the gift.