feat: Refactor cookie handling and hash retrieval; update environment configuration and improve logging levels

This commit is contained in:
bohd4nx
2026-01-19 19:02:28 +02:00
parent d299a1f804
commit b1eae1dcb7
15 changed files with 290 additions and 137 deletions
+1 -1
View File
@@ -18,7 +18,7 @@ class Config:
load_dotenv(env_path)
required_keys = ["COOKIES", "SEED", "HASH", "API_KEY"]
required_keys = ["SEED", "API_KEY"]
missing_keys: list[str] = []
for key in required_keys:
+2
View File
@@ -28,6 +28,8 @@ def setup_logging() -> None:
logging.getLogger("aiogram.dispatcher").setLevel(logging.INFO)
logging.getLogger("aiogram.event").setLevel(logging.ERROR)
logging.getLogger("httpx").setLevel(logging.INFO)
logging.getLogger("httpcore").setLevel(logging.WARNING)
logger = logging.getLogger(__name__)