first com2

This commit is contained in:
2026-04-08 17:10:36 +07:00
parent 8a597f880f
commit fc45816eba
34 changed files with 1310 additions and 29 deletions

View File

@@ -6,10 +6,13 @@ from dotenv import load_dotenv
load_dotenv(override=True)
class Settings(BaseSettings):
class settings(BaseSettings):
bot_token: str = Field(alias="BOT_TOKEN")
postgres_url: str = Field(alias="POSTGRES_URL")
proxy: Optional[str] = Field(None, alias="PROXY")
admin_group_id: int = Field(alias="ADMIN_GROUP_ID")
remnawave_url: str = Field(alias="REMNAWAVE_URL")
remnawave_token: str = Field(alias="REMNAWAVE_TOKEN")
settings = Settings() # type: ignore
settings = settings() # type: ignore