lily_website

📄 Bot Configuration

⬅️ Back 🏠 Docs Root

The BotSettings class manages all environment variables and configuration for the Telegram Bot. It is built using Pydantic Settings and inherits from CommonSettings.

🏗️ Class: BotSettings

Located in: src/telegram_bot/core/config.py

Key Configuration Fields

Bot & Telegram

Roles & Permissions

Data & Backend

Validators & Properties

📝 .env Example

BOT_TOKEN=123456789:ABCDEF...
TELEGRAM_ADMIN_CHANNEL_ID=-100123456789
TELEGRAM_TOPICS='{"hair": 2, "nails": 4}'
SUPERUSER_IDS=111222333,444555666
BACKEND_API_URL=http://backend:8000
BACKEND_API_KEY=your_secret_key