fix: 修复 Telegram 401 错误并新增 Windows setup.bat

- fix(Config.html): telegram channel 配置字段 botToken → token,
  修复接入 Telegram 时所有请求返回 401 Unauthorized 的问题
  (影响 portable / usb-release / u-claw-app 三个版本)
- feat(portable): 新增 setup.bat,Windows 用户可一键下载
  Node.js v22 + 安装 OpenClaw + 安装中文技能包,
  对应 setup.sh 的 Windows 版本(解决 issue #10 #17)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
hfshfg
2026-04-01 09:28:27 +08:00
parent 8ebb8d82b9
commit 4647a49cea
4 changed files with 120 additions and 3 deletions

View File

@@ -584,7 +584,7 @@ async function launchOpenClaw() {
const channels = {};
const tgToken = document.getElementById('ch-telegram-token')?.value.trim();
if (tgToken) channels.telegram = { enabled: true, botToken: tgToken, dmPolicy: 'pairing' };
if (tgToken) channels.telegram = { enabled: true, token: tgToken, dmPolicy: 'pairing' };
const qqId = document.getElementById('ch-qqbot-appid')?.value.trim();
const qqSecret = document.getElementById('ch-qqbot-secret')?.value.trim();