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#
| Callback | Description | Parameters | Authentication | KYC |
|---|
send_by_email | Send by email | None | Required | Required |
send_by_wallet | Send by wallet address | None | Required | Required |
send_confirm | Confirm transfer | None | Required | Required |
send_cancel | Cancel transfer | None | Required | Required |
transfer_currency:currency | Select currency | Currency code | Required | Required |
transfer_purpose:purpose | Select purpose | Purpose code | Required | Required |
Send By Email Callback#
Purpose: Initialize the process to send funds to an email address.š§ 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.š Send by Wallet Address
Please enter the recipient's wallet address:
Currency Selection Callback#
Purpose: Select the currency for a transfer.š·ļø Transfer Purpose
Please select a purpose for this transfer:
Purpose Selection Callback#
Purpose: Select the purpose code for a transfer.ā
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.ā
Transfer Successful!
You have sent 100 USDT to recipient@example.com.
Send Cancel Callback#
Purpose: Cancel the current transfer process.Transfer cancelled. What would you like to do next?
Email Receipt Handler#
Purpose: Handle user input when email recipient is expected.š° Enter Amount
Please enter the amount you want to send to recipient@example.com:
Purpose: Handle user input when wallet address recipient is expected.š° Enter Amount
Please enter the amount you want to send to 0x1234...5678:
Purpose: Handle user input when amount is expected.š± Select Currency
Please select the currency:
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