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

TD.Query.SendTonWalletTransfer

Synopsis

Documentation

data SendTonWalletTransfer Source #

Sends a cryptocurrency from the user's TON wallet; can be used only if getOption("can_use_ton_wallet"). Returns TonWalletTransferResult

Constructors

SendTonWalletTransfer 

Fields

  • user_id :: Maybe Int

    Identifier of the user who will receive the transfer; pass 0 if unknown

  • address :: Maybe Text

    Address in the TON blockchain of the transaction peer

  • amount :: Maybe Int

    The amount of the sent cryptocurrency, in the smallest units of the cryptocurrency

  • comment :: Maybe Text

    Comment added to the transaction

  • is_comment_encrypted :: Maybe Bool

    Pass true if the comment is encrypted and must be decrypted using the receiver's or sender's private key

  • sending_id :: Maybe Int

    Non-persistent identifier, which will be returned back in messageSendingStatePending object and can be used to match sent messages and corresponding updateNewMessage updates

  • regular_transfer_data :: Maybe ByteString

    Serialized data for regular cryptocurrency transfer request. The minimum allowed transfer amount is getOption("ton_wallet_transfer_amount_min")

  • gasless_transfer_data :: Maybe ByteString

    Serialized data for gasless cryptocurrency transfer request; pass an empty string to force a regular request. The minimum allowed transfer amount for a gasless transfer is getOption("ton_wallet_gasless_transfer_amount_min")