Skip to content

Async boilerplate for Telegram Bot with FastAPI and Aiogram3

Notifications You must be signed in to change notification settings

itc-code/fastapi-aiogram-template

 
 

Repository files navigation

Bolerplate FastAPI + Aiogram3 + Poetry Template Project

  • FastAPI
  • Aiogram 3
  • Poetry
  • Docker

Quickstart

Copy example with required env variables

cp .env.example .env

Get BOT_TOKEN from BotFather and set it in .env file and set BASE_DOMAIN for webhook.

Your .env file should look like this:

BOT_TOKEN=6694236732:fvevftgvthjadafgvtvg 
BASE_DOMAIN=https://public-domain.example.com

APP_PORT=8000 # optional
APP_HOST=0.0.0.0 # optional

Run with poetry

poetry install

Run with docker-compose

docker compose up --build

API will be available at http://localhost:8000 by default.

About

Async boilerplate for Telegram Bot with FastAPI and Aiogram3

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 81.0%
  • Dockerfile 13.3%
  • Makefile 5.7%