Skip to content

Afdaan/Telegram-Bot-Group

Repository files navigation

🤖 Advanced Telegram Bot - The Ultimate Modular Group Management & Automation Framework

Python Version License: MIT Modular Architecture

A feature-rich, high-performance Telegram bot framework designed for scalable group administration, telegram moderation, and automation. This project serves as a comprehensive telegram group manager bot with advanced management bot capabilities, as well as an integrated entertainment bot and sticker bot system. Built using python-telegram-bot, it provides a seamless bot automation experience for any community.


🌟 Professional Telegram Bot Features

🛡️ Smart Telegram Moderation Bot

Maintain professional control over your Telegram communities. This moderation bot includes:

  • Telegram Group Management: Automated warn systems and interactive admin interfaces.
  • Anti-Spam & Security: Robust flood protection and custom slowmode tools.
  • Interactive Buttons: Modern UI for direct moderation actions.

🛠️ Versatile Utility & Management Bot

A powerful management bot that simplifies daily tasks:

  • Global Translation: Professional /tr engine for multilingual groups.
  • Information Tools: Integrated Wikipedia, Calculator, and QR Generator.
  • Auto-Aggregator: Fast RSS monitoring to keep your group informed.

🎭 Entertainment & Social Bot

The best entertainment bot experience for your members:

  • Interactive Socials: Fun commands like /slap, /ship, and /rate.
  • Decision Engine: Advanced /decide logic for group interactive choices.
  • Identity & Fun: Daily IQ checks and personalized metadata analysis.

🎨 Advanced Sticker Bot System

A dedicated sticker bot module for managing your media:

  • Sticker Kanging: High-speed sticker addition to custom packs.
  • Conversion Tools: Effortlessly convert stickers to images or GIFs.
  • Pack Management: Centralized dashboard for all your sticker sets.

🏗️ Clean Code Architecture

This python telegram bot is built with a focus on modern development standards:

This project is built with a primary focus on Clean Code and Modularity.

  • Decoupled Plugins: Every feature resides in its own isolated module within the bot/plugins/ directory.
  • Asynchronous Stack: Built on python-telegram-bot with fully asynchronous database interactions via SQLAlchemy.
  • Zero-Comment Policy: We strictly follow a self-documenting code standard (No-Comment Policy) for peak readability and maintainability.
  • Interactive UI: Heavy utilization of Inline Keyboards and Callback Queries for a premium user experience.

🚀 Getting Started

Prerequisites

  • Python 3.10 or higher
  • MySQL 8.0 server
  • A Telegram Bot Token via @BotFather

Quick Setup (Local)

  1. Repository Installation:
    pip install -r requirements.txt
  2. Environment Configuration:
    cp .env.example .env
    # Populate .env with your credentials
  3. Database Migration:
    python migrate.py
  4. Execution:
    python run.py

🐳 Containerized Deployment

For production environments, Docker Compose is the recommended deployment method. It automatically manages the bot service, the MySQL database, and secure networking.

docker-compose up -d --build

📖 Documentation

For a detailed list of all available commands and their usage, please refer to the dedicated command guide:

👉 View Full Command List (COMMANDS.md)


🤝 Contribution & License

Contributions are welcome. Please ensure new features follow the existing modular pattern and adhere to the project's clean code standards.

Distributed under the MIT License.