CopperX is a Telegram bot that provides a convenient interface to the CopperX financial services platform. The bot allows users to manage their wallets, make transfers, check balances, and perform other financial operations directly from Telegram.
- Node 20.x or higher
- PNPM package manager
- Mysql/MariaDb database
- Telegram Bot Token (from Botfather)
- CopperX API Base Url
git clone https://github.com/Jonathanthedeveloper/copperx.git
cd copperx
pnpm install
Create a .env file in the root directory with the following variables:
# Bot Configuration
TELEGRAM_BOT_TOKEN=your_telegram_bot_token
# Database Configuration
DATABASE_HOST=<your_database_host>
DATABASE_PORT=3306
DATABASE_NAME=<your_database_name>
DATABASE_USER=<your_database_username>
DATABASE_PASSWORD=<your_database_password>
# CopperX API Configuration
COPPERX_API_URL=https://api.copperx.io
# Optional Configuration
PORT=3000
NODE_ENV=development
# start bot with hot-reload
pnpm start:dev
# Build the application
pnpm build
# Start in production mode
pnpm start:prod
For detailed command reference, please refer to the Command Reference