Copperx Telegram Bot
  1. callbacks
Copperx Telegram Bot
  • index
  • readme
  • setup
  • development
  • api-integration
  • troubleshooting
  • architechture
  • callbacks
    • index (all callbacks)
    • wallet
    • transfer-callback
    • send
  • commands
    • help
    • index(all commands)
    • login
    • logout
    • start
    • transfer
    • transfer
  • notifications
    • deposite-notification
  • Register Telegram Webhook to your url
    POST
  1. callbacks

transfer-callback

Transfer Callbacks#

This document details the callback operations related to transfer functionality in the CopperX Payout Bot.

Transfer Callback Overview#

Transfer callbacks enable users to interact with the transfer system, allowing them to view transaction history, send funds, withdraw to external wallets, and more.

Available Transfer Callbacks#

CallbackDescriptionParametersAuthenticationKYC
transfer_listShow transfer listNoneRequiredRequired
transfer_details:idShow transfer detailsTransfer IDRequiredRequired
transfer_sendInitiate send processNoneRequiredRequired
transfer_withdrawInitiate withdraw processNoneRequiredRequired
transfer_batchInitiate batch transferNoneRequiredRequired
transfer_offrampInitiate offramp transferNoneRequiredRequired
transfer_next_page:pageGo to next page of transfersPage numberRequiredRequired
transfer_prev_page:pageGo to previous page of transfersPage numberRequiredRequired
transfer_backReturn to transfer menuNoneRequiredRequired
send_by_emailSend by emailNoneRequiredRequired
send_by_walletSend by wallet addressNoneRequiredRequired
send_confirmConfirm transferNoneRequiredRequired
send_cancelCancel transferNoneRequiredRequired
transfer_currency:currencySelect currencyCurrency codeRequiredRequired
transfer_purpose:purposeSelect purposePurpose codeRequiredRequired

Transfer List Callback#

Purpose: Display a paginated list of the user's transfers.
Implementation:
Response Example:
๐Ÿ“‹ Your Transfers (Page 1/3)

Select a transfer to view details:

Transfer Details Callback#

Purpose: Show detailed information about a specific transfer.
Implementation:
Response Example:
๐Ÿงพ Transfer Details

ID: abc123def456
Status: success
Amount: 100.00 USDT
Fee: 1.50 USDT
Date: 3/15/2023, 2:30:45 PM
Type: send
Destination: 0x1234...5678
Transaction Hash: 0xabcd...efgh

Send By Email Callback#

Purpose: Set up a transfer to be sent via email address.
Implementation:
Response Example:
๐Ÿ“ง Send by Email

Please enter the recipient's email address:

Send By Wallet Callback#

Purpose: Set up a transfer to be sent via wallet address.
Implementation:
Response Example:
๐Ÿ”‘ Send by Wallet Address

Please enter the recipient's wallet address:

Send Confirm Callback#

Purpose: Execute the transfer after user confirmation.
Implementation:
Response Example:
โœ… Transfer Successful!

You have sent 100 USDT to recipient@example.com.

Send Cancel Callback#

Purpose: Cancel the current transfer process.
Implementation:
Response Example:
Transfer cancelled. What would you like to do next?

Transfer Withdraw Callback#

Purpose: Initialize the process to withdraw funds to an external wallet.
Implementation:
Response Example:
๐Ÿ“ค Withdraw to External Wallet

Please enter the destination wallet address:

Batch Transfer Callback#

Purpose: Initialize the process to send funds to multiple recipients at once.
Implementation:
Response Example:
๐Ÿ“ฆ Batch Transfer

Batch transfers allow you to send funds to multiple recipients at once.
1. Download the template CSV file
2. Fill in recipient emails/addresses and amounts
3. Upload the completed file to this chat

Related Files#

src/bot/handlers/transfer.handler.ts - Contains transfer callback handlers
src/services/transfer.service.ts - Service for transfer operations
src/utils/copperxApi/copperxApi.transfers.ts - API client for transfer operations
src/bot/messages/transfer.messages.ts - Message templates for transfers
src/constants/callback.enum.ts - Defines transfer callback enum values
Modified atย 2025-03-23 17:14:15
Previous
wallet
Next
send
Built with