feat(captcha): add validation and thread editing
Build and Push (dev) / build (push) Successful in 38m3s
Build and Push (main) / build (push) Canceled after 21m44s

This commit is contained in:
2026-08-07 10:51:54 +05:00
parent 9ee9e7b731
commit 0cc2440736
3 changed files with 162 additions and 18 deletions
+4
View File
@@ -131,6 +131,10 @@ class Config:
).lower() == "true"
captcha_answer = os.getenv(key="CAPTCHA_ANSWER", default=None)
# Validate captcha configuration
if enable_captcha and not captcha_answer:
raise ConfigError("ENABLE_CAPTCHA установлен, но CAPTCHA_ANSWER не задан")
return {
# Pyrogram
"api_id": api_id,