Template for creating new telegram bots
Download project
git clone https://github.com/ani4a/aiogram-template.git
Install dependencies
cd aiogram-template
pip3 install -r requirements.txt
Setup config
cp config.ini.example config.ini
nano config.ini
Run with systemd
sudo cat >/etc/systemd/system/aiogram-template.service <<EOL
Description=Aiogram Template
After=multi-user.target
[Service]
Type=simple
Restart=always
WorkingDirectory=/yourdir
ExecStart=python3 -m app
[Install]
WantedBy=multi-user.target
EOL
sudo systemctl enable --now aiogram-template.service