This commit is contained in:
2024-04-13 22:16:37 +02:00
parent c81a2921ad
commit 7b96290038
2 changed files with 4 additions and 4 deletions

View File

@@ -17,6 +17,8 @@ class TelethonConfig(BaseModel):
class EnvConfig(BaseSettings):
model_config = SettingsConfigDict(env_file='.env', env_file_encoding='utf-8')
API_KEY: str
TELEGRAM_CHAT_ID: int

View File

@@ -1,10 +1,8 @@
#! /usr/bin/env sh
/env.sh > ./.env
. ./.env
rm ./.env
cd /app
mkdir -p prometheus
/env.sh > ./.env
granian --interface asgi --host 0.0.0.0 --port 8080 --loop uvloop main:app