a basic telegram bot with basic options with aiogram. for base of new projects.
- all necessary packages are in requirements.txt
- migrations in migrations
- Application in app
first of all you need to install postgresql and create a database
pip install -r requirements.txt
place your database and bot configurations in app/config.py
use app/config.py.sample for example.
make migration
make migrate
running in polling mode (app/__main__.py):
python -m app polling
also in autoreload mode:
python -m app polling --autoreload
, aiohttp_autoreload
must be installed. (unfortunately is not avalibale.)