A modern, feature-rich Telegram bot built with Python, designed for scalability and ease of use. Perfect for managing communities, automating tasks, and building interactive experiences.
- 🚀 Modern Architecture – Modular and scalable codebase
- 🗄️ Database Support – SQLAlchemy with PostgreSQL/SQLite
- 👑 Admin System – Role-based access control (RBAC)
- 📊 User Management – Track users, groups, and activities
- 📝 Logging – Comprehensive logging system for debugging
- 🐳 Docker Support – Containerized for easy deployment
- 🔧 Webhook/Polling – Supports both Webhook and Long Polling
- 🌐 Multi-language – Ready for internationalization (i18n)
- 🔐 Environment Config – Secure configuration via
.env
- Python 3.11 or higher
- Telegram Bot Token from @BotFather
- Git (optional)
git clone https://github.com/asikrshoudo/Telegram-bot-2.git
cd Telegram-bot-2Method A: Using Setup Script (Recommended)
chmod +x scripts/setup.sh
./scripts/setup.sh
cp .env.example .envEdit .env with your details:
env
BOT_TOKEN=1234567890:ABCDEFG...
ADMIN_IDS=123456789,987654321
DATABASE_URL=sqlite:///data/bot.db
🐍 Python
python main.py