Prerequisites
Before you begin, ensure you have the following:Python 3.10+
Python 3.11 or higher is recommended for optimal performance
pip
Python package manager (usually included with Python)
The bot is built with aiogram 3, which requires Python 3.10 or higher. Python 3.11+ is recommended for better performance and feature support.
Installation steps
Create a virtual environment
Create and activate a Python virtual environment to isolate dependencies:
Using a virtual environment ensures dependencies don’t conflict with other Python projects on your system.
Install dependencies
Install the required Python packages from This installs the following core dependencies:
requirements.txt:requirements.txt
Dependency overview
Dependency overview
- aiogram 3.13.1 - Modern and asynchronous Telegram Bot API framework
- aiosqlite 0.20.0 - Async SQLite database driver for storing routing and message history
- python-dotenv 1.0.1 - Loads environment variables from
.envfile
Directory structure
After installation, your project directory will have the following structure:The
support_bot.sqlite3 database file will be created automatically when you first run the bot. You can configure its location using the DB_PATH environment variable.Next steps
After installation, you need to:- Configure environment variables - Set up your bot token and operator group
- Set up Telegram - Create your bot and configure the operator group
- Run the bot - Start processing support messages