Skip to content

Latest commit

 

History

History
44 lines (34 loc) · 1.05 KB

File metadata and controls

44 lines (34 loc) · 1.05 KB

Aiogram Bot Template (v3)

A scalable template for building Telegram bots using aiogram 3.x and sqlalchemy 2.x

Features

System dependencies

  • Python 3.12+
  • Poetry
  • Docker

Installation

Via Docker

  • Set up environment variables (.env)
    • Rename .env.example to .env
    • Configure it
  • Build and run docker container
    docker-compose up --build -d
    

Via systemd

  • Set up environment variables (.env)
    • Rename .env.example to .env
    • Configure it
  • Install the dependencies:
    poetry install
    
  • Run database migrations
    poetry run alembic upgrade head
    
  • Configure .service file
  • Start service
    systemctl --now enable tgbot.service