Note
Useful information that users should know, even when skimming content. https://mastergroosha.github.io/aiogram-3-guide/
Tip
Helpful advice for doing things better or more easily.
Important
Key information users need to know to achieve their goal.
Warning
Urgent info that needs immediate user attention to avoid problems.
Caution
Advises about risks or negative outcomes of certain actions.
├── bot.py
├── loader.py
├── requirements.txt
├── README.md
├── callbaks
│ ├── __init__.py
│ └── pagination.py
├── data
│ ├── config_reader.py
│ ├── __init__.py
│ ├── smiles.json
│ └── subloader.py
├── filters
│ ├── __init__.py
│ ├── is_admin.py
│ ├── is_channel.py
│ ├── is_digit_or_float.py
│ ├── is_group.py
│ └── is_private_chat.py
├── handlers
│ ├── __init__.py
│ ├── channels
│ │ └── __init__.py
│ ├── groups
│ │ └── __init__.py
│ └── users
│ ├── __init__.py
│ ├── admin.py
│ ├── bot_messages.py
│ ├── questionaire.py
│ └── user_commands.py
├── keyboards
│ ├── __init__.py
│ ├── builders.py
│ ├── fabrics.py
│ ├── inline.py
│ └── reply.py
├── middlewares
│ ├── __init__.py
│ ├── check_sub.py
│ └── throttling.py
└── utils
├── __init__.py
├── bot_start.py
├── set_bot_commands.py
├── db
│ ├── __init__.py
│ └── postgres.py
└── states.py
Support - Telegram
- 1 - clone repo
git clone https://github.com/jaloliddin1006/Aiogram3-template.git
- 2 - create a virtual environment and activate
pip3 install virtualenv
orvirtualenv venv
virtualenv venv
venv\Scripts\activate
(windows) orsource venv/bin/activate
(unix-based systems)
- 3 - cd into project
cd Aiogram3-template
- 4 - Install dependencies
pip3 install -r requirements.txt
- 5 - Set your environment variables
cp .env.example .env
- 6 - Run bot
python3 bot.py
Quidagi funksiyalari tayyor
channel reqiured +
defoult bot commands +
states +
inline btn +
reply btn +
builder btn +
pagination +
admin filter +
private chat filter +
groups filter +
channels filter +
connect db -
inline -
systemd setting
[Unit]
Description=Aiogram bot
After=network.target
[Service]
User=root
Group=root
Type=simple
WorkingDirectory=/var/www/Aiogram3-template
ExecStart=/root/.local/bin/poetry run Aiogram3-template
EnvironmentFile=/var/www/Aiogram3-template/.env
Restart=always
[Install]
WantedBy=multi-user.target