/aiogram-base

a basic telegram bot with basic options with aiogram. for base of new projects.

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

aiogram-base

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

installing:

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.

running:

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.)