first commit

This commit is contained in:
2026-04-05 21:06:43 +07:00
commit 8a597f880f
28 changed files with 783 additions and 0 deletions

15
config.py Normal file
View File

@@ -0,0 +1,15 @@
from typing import Optional
from pydantic_settings import BaseSettings
from pydantic import Field
from dotenv import load_dotenv
load_dotenv(override=True)
class Settings(BaseSettings):
bot_token: str = Field(alias="BOT_TOKEN")
postgres_url: str = Field(alias="POSTGRES_URL")
proxy: Optional[str] = Field(None, alias="PROXY")
settings = Settings() # type: ignore