A multifunctional bot for the MAX platform that provides chat administration, moderation tools, user information commands, and interactive features.
This project was developed as part of an internship project for managing and moderating a school group chat.
- 👋
/startcommand - 📖 Built-in help system (
/help) - 👤 User information
- 🆔 Get user or chat ID
- 💬 Chat information
- 🎲 Random member selection
- 🔢 Counting members
- 🔇 Anti-spam and flood protection
- ✅ System of member verification
- 📅 Configurable trust period for members
- 🎮 Mini-games
- 📡 List all chats where the bot is present
- ⚙️ Additional moderation and administration commands
MAX-chat-bot/
│
├── commands/ # Command handlers
├── utils/ # Utility functions
├── config.py # Bot configuration
├── logger_config.py # Logging configuration
├── mute_command.py # Moderation commands
├── mute_middleware.py # Anti-spam middleware
├── main.py # Application entry point
└── README.md
- Python 3.10+
- MAX Bot API (maxapi)
- Async programming
- Middleware architecture
- Modular command architecture
- Python 3.10+
maxapilibraryparamikolibrarypandaslibrary
Clone the repository:
git clone https://github.com/<your-username>/MAX-chat-bot.git
cd MAX-chat-botInstall the dependencies:
pip install -r requirements.txtIf the project does not include a
requirements.txtfile, install the required libraries manually (includingmaxapiand any other dependencies).
Open config.py and configure the required values:
TOKEN = "YOUR_BOT_TOKEN"
ADMINS_ID = [
123456789
]
MAIN_CHAT_ID = 123456789
TRUST_DAYS = 7| Variable | Description |
|---|---|
TOKEN |
Your bot token |
ADMINS_ID |
List of administrator IDs |
MAIN_CHAT_ID |
ID of the main chat |
TRUST_DAYS |
Number of days before a member is considered trusted |
python main.pyor
python3 main.py| Command | Description |
|---|---|
/start |
Start the bot |
/help |
Show the help menu |
/myinfo |
Display your profile information |
/chatinfo |
Show information about the current chat |
/getid |
Get a user or chat ID |
/random |
Select a random member |
/count |
Count members in chat |
/game |
Play mini-games |
/set_verify_days |
Configure the trust period |
/randomverify |
Verify random members |
Additional commands can be found in the
commands/directory.
The project is organized into independent modules:
- commands/ — command handlers
- utils/ — helper utilities
- middleware — message processing and anti-spam protection
- config.py — centralized configuration
This modular architecture makes the project easy to maintain and extend with new features.
To add a new command:
- Create a new file inside the
commands/directory. - Register the command handler.
- Import the module in
main.py.
This project is licensed under the MIT License.






