Install
openclaw skills install telegram-footer-patchAdd a Telegram private-chat footer (`🧠 Model + 💭 Think + 📊 Context`) to OpenClaw replies, with dry-run preview, backup, syntax validation, rollback, and r...
openclaw skills install telegram-footer-patch
给 Telegram 私聊回复追加平台层尾注,不依赖模型记忆。
🧠 Model + 💭 Think + 📊 Context🧠 Model + 💭 Think + 📊 Context 尾注当前实现:优先命中并修改当前版本实际可能生效的 dist 文件(包含 agent-runner.runtime-*.js、reply-*.js、compact-*.js、pi-embedded-*.js、delivery-*.js 等),支持按内容 anchor 自动发现、自动备份、重复覆盖更新与回滚。注意:这表示“尽量兼容不同 bundle 布局”,不等于已经证明跨版本都兼容;最终是否修好,以真实 Telegram 私聊回复是否出现脚注为准。
/usr/lib/node_modules/openclaw/dist/agent-runner.runtime-BWpOtdxK.js/usr/lib/node_modules/openclaw/dist/agent-runner.runtime-UIIO4kss.js/usr/lib/node_modules/openclaw/dist/agent-runner.runtime-D6-wGQkR.js + /usr/lib/node_modules/openclaw/dist/delivery-iF4EZ9PY.js--dry-run、--auto-discover --verify、smoke test、node --checkThis skill does what it says (patches OpenClaw dist JS files to append a Telegram footer), but it writes into your OpenClaw installation directory and requires Node.js + Python 3.
Before installing/running:
--dry-run to see which files would be touched.node is installed and you have a plan for filesystem permissions (consider a staging instance/container).*.bak.telegram-footer.*) and test the revert script.这项技能的功能正如其名(修改 OpenClaw 分发目录中的 JS 文件,添加 Telegram 页脚),但它会写入 OpenClaw 安装目录,并且需要 Node.js + Python 3。
安装/运行前:
--dry-run 先预览将会修改哪些文件。node,并规划好文件系统权限(建议先在测试环境/容器中跑)。*.bak.telegram-footer.*)并测试还原脚本。python3 scripts/patch_reply_footer.py --dry-run --list-targets
python3 scripts/patch_reply_footer.py --auto-discover
python3 scripts/patch_reply_footer.py --auto-discover --verify
bash scripts/smoke_test_footer_patch.sh
# 或指定 dist
bash scripts/smoke_test_footer_patch.sh /usr/lib/node_modules/openclaw/dist
这个流程会依次执行:
node --checkformatTokens(边界说明: 这一步只证明“当前 dist 样本里的候选 bundle 已被 patch 且语法正常”,不等于真实回复链路一定已经生效,也不等于跨版本兼容已经被证明。
说明:补丁改的是 OpenClaw 的 dist bundle;Gateway 不重启就不会重新加载,Telegram 私聊脚注不会生效。仅热刷新 / SIGUSR1 不应直接当作验收通过。如果环境允许,最好确认出现了新 PID。
openclaw gateway restart
重启后,必须做一次真实 Telegram 私聊回复验收:
🧠 ...💭 Think: ...📊 .../...推荐验收标准:
--dry-run / smoke test 通过 → 只能说明 patch 写进了候选 bundle;python3 scripts/revert_reply_footer.py
openclaw gateway restart
node --checkformatTokens 等局部 helper--list-targets / --verify,先看命中文件,再确认 marker 是否真的打进实际 bundlescripts/smoke_test_footer_patch.sh,把 patch + verify + syntax + helper-sanity 串成一套固定回归流程dist/agent-runner.runtime-*.js、dist/reply-*.js、dist/compact-*.js、dist/pi-embedded-*.js、dist/plugin-sdk/thread-bindings-*.js、dist/model-selection-*.js、dist/auth-profiles-*.js、dist/delivery-*.js--auto-discover 会按内容 needle 追加扫描 dist/**/*.js,适合升级后重新定位实际生效 bundle.bak.telegram-footer.* 备份--dry-run --list-targets,再用 --auto-discover --verify 确认命中实际 bundle