{"repo":"andrew000/aiogram-template","free":true,"listed":false,"github":"https://github.com/andrew000/aiogram-template","clone":"git clone https://github.com/andrew000/aiogram-template.git","description":"Telegram Bot Template. aiogram, i18n, SQLAlchemy+Alembic, PostgreSQL, Redis, Caddy Server, Docker, uv, FTL-Extract","language":"Python","stars":91,"topics":["aiogram","aiogram-bot-template","aiogram-template","aiogram3","alembic","caddy","caddyserver","docker","docker-compose","fluent"],"license":"MIT","category":"deployment-docker-iac","readme_excerpt":"aiogram-template This is a template for creating Telegram bots using the aiogram library. ❗️ Read HELP.md if something is unclear ❗️ Template uses: aiogram 3 SQLAlchemy + Alembic PostgreSQL Redis Caddy Server Docker i18n (Project Fluent) uv Installation Step 1: Clone the repository Step 2: Install dependencies 1. Install JUST to manage project commands. 2. Install UV to manage your project. Step 3: Create .env file Create a .env file in the root of the project and fill it with the necessary data. Set DEV=True for development mode. Step 4: Deploy project Step 5: Run migrations Template already has initial migration. To apply it, run the following command: Step 6: Bot is ready and running Bot is ready to use. You can check the logs using the following command: Explanation Project structure The project structure is as follows: The bot is located in the app/bot directory. The bot is divided into modules, each of which is responsible for a specific functionality. handlers are responsible for processing events, middlewares for preprocessing events, storages for declaring models and working with the database, locales for localization, filters for own filters, errors for error handling. Migrations Migration files are located in the app/migrations directory. ❗️ It is recommended to create migrations files before you push your code to the repository. ❗️ Always check your migrations before apply them to the production database. To create initial migration, check if your models imported ","default_branch":null,"files":null,"tree":[],"storefront":"/r/andrew000","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/andrew000/aiogram-template/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}