Documentation - v0.32.6
    Preparing search index...

    Function withdrawStarGiftToLinkedWallet

    • Withdraw a unique star gift to the TON blockchain as an NFT, directly to the current user's TON wallet (which is created automatically if needed).

      The gift will be received by the wallet a few seconds after the request succeeds.

      Parameters

      • client: ITelegramClient
      • params: { gift: InputStarGift; keepOnProfile?: boolean; password: string }
        • gift: InputStarGift

          The star gift to withdraw

        • OptionalkeepOnProfile?: boolean

          Whether to keep the gift displayed on the profile after withdrawal

        • password: string

          2FA password

      Returns Promise<void>