System Architecture
👤
Customer
Telegram Client
🤖
Bot Server
Pyrogram · Async
⚙️
Backend API
Flask-RESTful
🌐
Service Node
Product Delivery
🗃️
SQLite
Users · Orders · Txns
🛢️
MySQL
Product Accounts · Config
Key Features
⚡
Async Event-Driven
Fully asynchronous bot with Pyrogram, handling concurrent users via state machine (FSM) pattern.
💳
Payment Pipeline
Automated receipt verification, card rotation, admin approval workflow with full audit trail.
🔄
Auto-Provisioning
Instant product delivery via inter-server REST API calls. Zero manual intervention needed.
📊
Admin Dashboard
Real-time sales reports, broadcast messaging, financial settlement tracking via Telegram.
🛡️
Server Monitoring
Live CPU, RAM, network bandwidth metrics with psutil. Health checks via RESTful endpoints.
♻️
Subscription Lifecycle
Full renewal flow with dynamic pricing, discount logic, and automated expiry management.
Tech Stack
Python
Pyrogram
Flask-RESTful
SQLite
MySQL
Async/Await
httpx
psutil
REST API
UUID/Token Auth
Telegram Bot API
Multi-Server
Project Highlights