tao-shen Claude Opus 4.6 commited on
Commit
0e39bfb
Β·
1 Parent(s): f214515

fix: always force dmPolicy=open + allowFrom=["*"] on every startup

Browse files
Files changed (1) hide show
  1. 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
- if tg_ch.get("dmPolicy") in ("pairing", None):
488
- tg_ch["dmPolicy"] = "open"
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