🚀 Deployed Bot: @CopperX_Bounty_Bot
The CopperX Telegram Bot is a secure and efficient financial assistant that enables users to manage funds, transfer assets, and receive real-time updates—all within Telegram.
✅ Secure Login – OTP-based authentication
✅ Fund Transfers – Send money via email, wallet, or bank
✅ Balance Inquiry – Check account balances instantly
✅ Deposit & Withdrawal – Manage deposits and withdrawals
✅ Real-time Notifications – Get transaction alerts instantly
- Technical Overview
- Setup & Installation
- Commands & Usage
- API Integration
- Security Considerations
- Troubleshooting & FAQs
Tech Stack:
- Node.js – Backend
- Telegraf.js – Telegram bot framework
- CopperX API – Handles authentication and transactions
- Session Storage – Maintains user session
- Node.js (v16+)
- Telegram Bot Token from @BotFather
- CopperX API credentials
git clone https://github.com/Penivera/CopperX-Bounty.git
cd copperx-telegram-bot
npm install🛠 Configuration
Create a .env file and add:
BOT_TOKEN=your_telegram_bot_token COPPERX_API_KEY=your_api_key WEBHOOK_URL=your_webhook_url
🚀 Running the Bot
npm start
or
node index.js
💬 Commands & Usage
🔗 API Integration
1️⃣ Authentication API
Request OTP:
POST /auth/request-otp
{ "email": "user@example.com" }
Verify OTP:
POST /auth/verify-otp
{ "email": "user@example.com", "otp": "123456", "sid": "12345" }
2️⃣ Balance API
Get Balance:
GET /balance
Headers: { Authorization: Bearer accessToken }
3️⃣ Transfer API
Send Funds:
POST /transfer
🔐 Security Considerations
✅ JWT Authentication – Ensures secure session handling ✅ Input Validation – Prevents injection attacks ✅ Rate-Limiting – Protects from abuse
❓ Troubleshooting & FAQs
Q: I am not receiving the OTP. What should I do?
A: Check your spam folder and ensure your email is correct.
Q: How do I reset my session?
A: Use /logout and then /login to restart authentication.
Q: Can I send funds to a bank account?
A: Yes, use /send and choose the "bank" option.
📩 Contact & Support
📧 Email: support@copperx.com 💬 Telegram Support: @CopperXSupport
⭐ Contribute
If you’d like to contribute, feel free to fork the repo and submit a pull request!
GitHub Repo: https://github.com/Penivera/CopperX-Bounty
🚀 Ready to get started? Click here https://t.me/CopperX_Bounty_bot to use the bot!