{"repo":"arturboyun/AiogramBotTemplate","free":true,"listed":false,"github":"https://github.com/arturboyun/AiogramBotTemplate","clone":"git clone https://github.com/arturboyun/AiogramBotTemplate.git","description":"This is a template for easy start of bot development for Telegram","language":"Python","stars":128,"topics":["aiogram-bot-template","telegram-bot","aiogram","aiogrambot","telegram","aiogram-bot","aiogram-template","bot","python","aiogram-dialog"],"license":"MIT","category":"chat-messaging","readme_excerpt":"📋 Telegram Bot Template This template provides clean start to create bot using aiogram. 🛠 Stack - Aiogram - Aiogram Dialog - Dishka - Pydantic - FastAPI - I18n (TODO) - SQLAlchemy + asyncpg - Alembic - UV - Ruff - Docker - PostgreSQL - Redis 🐳 Setup with Docker 1. Create .env file from .env.dist and fill it. 2. Create password.txt in db folder and fill it. 3. Run docker docker compose up --build -d 4. Run migrations with docker compose exec -it db uv run alembic upgrade head 🐇 Setup for local start 1. Create .env file from .env.dist and fill it. 2. Create password.txt in db folder and fill it. 3. Run docker compose up --build -d db redis 4. Install dependencies with uv sync 5. Create .venv with uv venv --seed 6. Activate virtual environment with source .venv/bin/activate 7. Run migrations with alembic upgrade head 8. Run bot with python -m bot 📎Start with webhook 1. Set USE WEBHOOK to True in .env 2. Update BOT SECRET TOKEN 3. Set API HOST to your domain 4. Update ORIGINS in .env 5. Start bot with python -m bot 🍀 For production docker compose -f compose.yml -f compose.prod.yml up --build -d How To? Run migrations Generate new migration Generate Secret Keys Some environment variables in the .env file have a default value of changethis. You have to change them with a secret key, to generate secret keys you can run the following command:","default_branch":null,"files":null,"tree":[],"storefront":"/r/arturboyun","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/arturboyun/AiogramBotTemplate/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."}