Spaces:
Runtime error
Runtime error
fix: always force dmPolicy=open + allowFrom=["*"] on every startup
Browse files- scripts/sync_hf.py +3 -4
scripts/sync_hf.py
CHANGED
|
@@ -484,11 +484,10 @@ class OpenClawFullSync:
|
|
| 484 |
# ββ Telegram channel defaults (open DM policy for HF Spaces) ββ
|
| 485 |
# Personal bot on HF Spaces β no need for strict pairing.
|
| 486 |
tg_ch = data.setdefault("channels", {}).setdefault("telegram", {})
|
| 487 |
-
|
| 488 |
-
|
| 489 |
-
tg_ch["allowFrom"] = ["*"]
|
| 490 |
-
print("[SYNC] Set channels.telegram.dmPolicy = open, allowFrom = [*]")
|
| 491 |
tg_ch["configWrites"] = True
|
|
|
|
| 492 |
|
| 493 |
# ββ Telegram API base auto-probe ββββββββββββββββββββββββββββββ
|
| 494 |
# Probe is done in run_openclaw() β sets TELEGRAM_API_ROOT env var
|
|
|
|
| 484 |
# ββ Telegram channel defaults (open DM policy for HF Spaces) ββ
|
| 485 |
# Personal bot on HF Spaces β no need for strict pairing.
|
| 486 |
tg_ch = data.setdefault("channels", {}).setdefault("telegram", {})
|
| 487 |
+
tg_ch["dmPolicy"] = "open"
|
| 488 |
+
tg_ch["allowFrom"] = ["*"]
|
|
|
|
|
|
|
| 489 |
tg_ch["configWrites"] = True
|
| 490 |
+
print("[SYNC] Set channels.telegram: dmPolicy=open, allowFrom=[*], configWrites=true")
|
| 491 |
|
| 492 |
# ββ Telegram API base auto-probe ββββββββββββββββββββββββββββββ
|
| 493 |
# Probe is done in run_openclaw() β sets TELEGRAM_API_ROOT env var
|