跳到正文
TakoAPI
返回技能列表

telegram-footer-patch

由 c-joey 提供

Clawdbot Tools
297下载量由 clawskills.sh 提供
4星标
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Patch Telegram replies with OpenClaw footer.

描述

该技能的功能

Patches OpenClaw's distributed JS files to append a footer line, `🧠 Model + 💭 Think + 📊 Context`, to every Telegram private-chat reply at the platform layer. Before and after each write, it creates timestamped backups, runs `node --check` syntax validation with auto-revert on failure, and provides rollback scripts plus reapply logic for post-upgrade scenarios.

Appending at the platform layer means the footer appears on every reply without relying on model memory or system prompt changes.

何时使用

  • Checking which model handled a specific Telegram reply without asking
  • Monitoring context window usage across a private chat session
  • Verifying think mode is active during a Telegram conversation
  • Debugging model selection after an OpenClaw upgrade
  • Rolling back the footer patch when testing a new OpenClaw version

示例工作流

输入

User asks: I want to see model and context info on every Telegram reply

智能体
  1. 1

    Run python3 scripts/patch_reply_footer.py --dry-run to preview which dist files will be modified

  2. 2

    Run python3 scripts/patch_reply_footer.py to apply the patch with automatic backup

  3. 3

    Script validates syntax with node --check and auto-reverts if validation fails

  4. 4

    Run openclaw gateway restart to activate the patched files

输出

All Telegram private-chat replies now include a footer line: `🧠 Model + 💭 Think + 📊 Context`

安装

clawhub install c-joey/telegram-footer-patch

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接