- FastAPI
- Aiogram 3
- Poetry
- Docker
Copy example with required env variables
cp .env.example .envGet 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
poetry installdocker compose up --build
API will be available at http://localhost:8000 by default.