Files
game-marathon/bot/config.py
2025-12-18 17:15:21 +07:00

16 lines
372 B
Python

from pydantic_settings import BaseSettings
class Settings(BaseSettings):
TELEGRAM_BOT_TOKEN: str
API_URL: str = "http://backend:8000"
BOT_USERNAME: str = "" # Will be set dynamically on startup
BOT_API_SECRET: str = "" # Secret for backend API communication
class Config:
env_file = ".env"
extra = "ignore"
settings = Settings()