Archived
1.0.7 - polski interfejs i porządki w dokumentacji
Wydanie WGTools-Extended / release (push) Successful in 8s
Wydanie WGTools-Extended / release (push) Successful in 8s
This commit is contained in:
1 parent
97f73a6277
commit
babbdee26d
39 files changed
+142
-24356
No files matched your search
@@ -191,8 +191,9 @@ def update_telegram_settings(
|
||||
dns = _normalize_dns(default_dns)
|
||||
endpoint = _normalize_endpoint(default_endpoint)
|
||||
language = str(language or "auto").strip().lower()
|
||||
if language not in {"auto", "en", "ru"}:
|
||||
raise ValueError("Bot language must be auto, en or ru")
|
||||
if language not in {"auto", "en", "ru", "pl"}:
|
||||
raise ValueError("Nieprawidłowy język bota")
|
||||
language = "pl"
|
||||
if enabled and not token:
|
||||
raise ValueError("Configure a BotFather token before enabling the Telegram bot")
|
||||
|
||||
|
||||
Reference in new issue
Block a user