Skip to content

IvanIsak2000/AiogramTemplateBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Minimal aiogram-driven Telegram bot

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages