1
0
mirror of https://gitlab.com/MoonTestUse1/AdministrationItDepartmens.git synced 2025-08-14 00:25:46 +02:00

Авторизация починка 2

This commit is contained in:
MoonTestUse1
2024-12-28 08:04:54 +06:00
parent 7e38f1c351
commit 9cb3c3edaf
2 changed files with 8 additions and 6 deletions

View File

@@ -7,12 +7,14 @@ from pydantic import Field
class Settings(BaseSettings):
"""Bot configuration settings"""
bot_token: str = Field(..., env="TELEGRAM_BOT_TOKEN")
chat_id: str = Field(..., env="TELEGRAM_CHAT_ID")
bot_token: str = Field(..., alias="TELEGRAM_BOT_TOKEN")
chat_id: str = Field(..., alias="TELEGRAM_CHAT_ID")
database_url: str = Field(..., alias="DATABASE_URL")
class Config:
env_file = ".env"
env_file_encoding = "utf-8"
case_sensitive = True
# Create settings instance
settings = Settings()