Files
2026-01-18 21:01:43 +03:00

21 lines
540 B
Python

from pydantic_settings import BaseSettings
from typing import Optional
class Settings(BaseSettings):
DATABASE_URL: str = "postgresql://user:password@localhost/telepost"
REDIS_URL: str = "redis://localhost:6379"
SECRET_KEY: str = "your-secret-key-here"
ALGORITHM: str = "HS256"
ACCESS_TOKEN_EXPIRE_MINUTES: int = 30
# Telegram Bot API settings
TELEGRAM_BOT_TOKEN: Optional[str] = None
TELEGRAM_BOT_NAME: Optional[str] = None
class Config:
env_file = ".env"
settings = Settings()