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

send

Send Callbacks#

This document details the callback operations specifically related to sending funds in the CopperX Payout Bot.

Send Callback Overview#

Send callbacks enable users to send funds to other users via email addresses or wallet addresses. The send process is a multi-step flow that involves selecting a method, specifying a recipient, entering an amount, selecting a currency, specifying a purpose, and confirming the transfer.

Available Send Callbacks#

CallbackDescriptionParametersAuthenticationKYC
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

Send By Email Callback#

Purpose: Initialize the process to send funds to an email address.
Implementation:
Response Example:
šŸ“§ Send by Email

Please enter the recipient's email address:

Send By Wallet Callback#

Purpose: Initialize the process to send funds to a wallet address.
Implementation:
Response Example:
šŸ”‘ Send by Wallet Address

Please enter the recipient's wallet address:

Currency Selection Callback#

Purpose: Select the currency for a transfer.
Implementation:
Response Example:
šŸ·ļø Transfer Purpose

Please select a purpose for this transfer:

Purpose Selection Callback#

Purpose: Select the purpose code for a transfer.
Implementation:
Response Example:
āœ… Confirm Transfer

You are about to send:
Amount: 100 USDT
To: recipient@example.com
Purpose: PAYMENT

Do you want to proceed?

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?

Email Receipt Handler#

Purpose: Handle user input when email recipient is expected.
Implementation:
Response Example:
šŸ’° Enter Amount

Please enter the amount you want to send to recipient@example.com:

Wallet Address Input Handler#

Purpose: Handle user input when wallet address recipient is expected.
Implementation:
Response Example:
šŸ’° Enter Amount

Please enter the amount you want to send to 0x1234...5678:

Amount Input Handler#

Purpose: Handle user input when amount is expected.
Implementation:
Response Example:
šŸ’± Select Currency

Please select the currency:

Related Files#

src/bot/handlers/transfer.handler.ts - Contains send callback handlers
src/services/transfer.service.ts - Service for transfer operations
src/bot/messages/transfer.messages.ts - Contains transfer message templates
src/types/transfers.types.ts - Transfer data type definitions
src/constants/callback.enum.ts - Defines callback enum values
Modified atĀ 2025-03-23 17:15:15
Previous
transfer-callback
Next
help
Built with