Initial commit

This commit is contained in:
2026-01-18 21:01:43 +03:00
commit 455b6df2ba
3329 changed files with 1143638 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
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()