invix_test_task/bot/app/config.py

17 lines
465 B
Python

from pydantic_settings import BaseSettings, SettingsConfigDict
class Settings(BaseSettings):
model_config = SettingsConfigDict(extra="ignore")
database_url: str = "postgresql://shop:shop@localhost:5432/shop"
api_url: str = "http://localhost:8000"
bot_token: str = ""
bot_secret: str = "dev-bot-secret"
bot_mode: str = "polling"
webhook_url: str = ""
webhook_path: str = "/telegram/webhook"
settings = Settings()