Skip to content

Latest commit

 

History

History
38 lines (29 loc) · 723 Bytes

README.md

File metadata and controls

38 lines (29 loc) · 723 Bytes

Base aiogram bot template

Setup

  • python3.12
  • sqlalchemy
  • psycopg2
  • logging
  • poetry

How to use?

  1. Clone repository

  2. Activate poetry and install dependencies

poetry install && poetry shell
  1. Fill .env file by your data

  2. Get bot token from BotFather

  3. Change folder

cd src/
  1. Add your code!

  2. Run bot

python3 bot.py

How use with database?

  1. Fill .env file with postgresql data of your db server
  2. Uncomment the database initialization in the bot.py file
  3. Uncomment models import in handlers/__init__.py
  4. Uncomment middleware import in bot.py and middleware connect