There was an error while loading. Please reload this page.
1 parent 17df140 commit 08e586bCopy full SHA for 08e586b
1 file changed
scripts/qsl_watchdog.py
@@ -23,7 +23,8 @@ def _telegram_alert(message: str) -> bool:
23
chat_id = os.environ.get("GLOBAL_TELEGRAM_CHAT_ID", "").strip()
24
if not token or not chat_id:
25
return False
26
- import json, urllib.request
+ import json
27
+ import urllib.request
28
req = urllib.request.Request(
29
f"https://api.telegram.org/bot{token}/sendMessage",
30
data=json.dumps({"chat_id": chat_id, "text": message}).encode(),
0 commit comments