Skip to content

This is a scalable and functional template for any bots which will be made with aiogram 3.x

License

Notifications You must be signed in to change notification settings

AbstractiveNord/masson-aiogram-template

 
 

Repository files navigation

template telegram


Setup bot

  1. Clone this repository

  2. Change the name of .env.dist to .env and set all environment variables as you need

  3. Change password for redis in build/redis.conf (requirepass and masterauth). Set same password in .env (REDIS_PASSWORD).

  4. Change project name and other information in pyproject.toml

  5. make project-start to start project with docker-compose or make help if you want to know more about make commands


Development

If you want to lint your code:
make lint
This will start isort, black and flake8 to src and tests folders

You can manually run any instrument by:
make flake, make black or make isort

Migrations

make generate NAME=<name>
Generate alembic revision for migration with given name

make migrate
Apply migrations to the target database


Roadmap

  • Add Github Actions CI/CD
  • Light (simplified) version without docker and CI/CD
  • Highload version with NATS and Docker Swarm
  • More tests kit and update factory

About

This is a scalable and functional template for any bots which will be made with aiogram 3.x

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 94.3%
  • Makefile 2.6%
  • Dockerfile 1.4%
  • Mako 1.1%
  • Fluent 0.6%