haskell-tdlib-2.1.31.0: Binding to the Telegram Database Library
Safe HaskellSafe-Inferred
LanguageGHC2021

TD.Data.UpgradedGiftDepositInfo

Documentation

data UpgradedGiftDepositInfo Source #

Constructors

UpgradedGiftDepositInfo

Contains information needed to deposit an upgraded gift from the TON wallet of the current user to a Telegram account. The gift must be transferred by an internal message from the wallet to nft_address with gram_amount attached and with payload as the message body. Use sendTonWalletTransaction to send the message

Fields

  • nft_address :: Maybe Text

    Address on the TON blockchain to which the message must be sent

  • payload :: Maybe ByteString

    Body of the NFT transfer message

  • gram_amount :: Maybe Int

    The amount that must be attached to the message to cover fees, in the smallest units of TON Grams; the excess amount will be returned to the wallet