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

wallet

Wallet Callbacks#

This document details the callback operations related to wallet management in the CopperX Payout Bot.

Wallet Callback Overview#

Wallet callbacks enable users to interact with their cryptocurrency wallets through inline keyboard buttons. These callbacks handle operations such as viewing wallet details, setting default wallets, generating deposit addresses, and creating new wallets.

Available Wallet Callbacks#

CallbackDescriptionParametersAuthenticationKYC
wallet_details:idShow wallet detailsWallet IDRequiredRequired
wallet_set_default:idSet default walletWallet IDRequiredRequired
wallet_deposit:idShow deposit addressWallet IDRequiredRequired
wallet_all_balancesShow all wallet balancesNoneRequiredRequired
wallet_backReturn to wallet listNoneRequiredRequired
wallet_createCreate new walletNoneRequiredRequired
create_wallet_*Create wallet on specific networkNetwork nameRequiredRequired

Wallet Details Callback#

Purpose: Display detailed information about a specific wallet including its balance, network, and address.
Implementation:
Response Example:
šŸ’¼ Wallet Details

Network: ethereum
Wallet ID: 12345abcde
Address: 0x1234...5678
Balance: 100.50 USDT
āœ… Default Wallet

What would you like to do with this wallet?

Set Default Wallet Callback#

Purpose: Set a specific wallet as the default wallet for transactions.
Implementation:
Response Example:
āœ… Your ethereum wallet has been set as the default wallet.

Deposit Callback#

Purpose: Display a wallet address for receiving funds.
Implementation:
Response Example:
šŸ“„ Deposit to your ethereum wallet

Send funds to this address:
0x1234567890abcdef1234567890abcdef12345678

Only send ethereum network tokens to this address. Sending other tokens may result in permanent loss.

All Balances Callback#

Purpose: Display balances across all user wallets.
Implementation:
Response Example:
šŸ’° Your Wallet Balances

Network: ethereum
Balance: 100.50 USDT
Address: 0x1234...5678

Network: polygon
Balance: 25.75 MATIC
Address: 0xabcd...efgh

Wallet Back Callback#

Purpose: Return to the wallet list view.
Implementation:

Create Wallet Callback#

Purpose: Initiate the wallet creation process.
Implementation:

Dynamic Create Wallet Network Callback#

Purpose: Create a wallet on a specific network.
Implementation:
This is handled in the main callback router:

Wallet Callback Registration#

Wallet callbacks are registered in the callback operations:

Related Files#

src/bot/handlers/wallet.handler.ts - Contains wallet callback handlers
src/services/wallet.service.ts - Service layer for wallet operations
src/constants/callback.enum.ts - Defines callback enum values
src/bot/messages/wallet.messages.ts - Contains wallet message templates
Modified atĀ 2025-03-23 17:12:45
Previous
index (all callbacks)
Next
transfer-callback
Built with