telegram-pairing-message-customization
Add custom messages to Telegram pairing replies for unapproved users. Insert custom text (e.g., group links, instructions) above the approval command in pairing messages. Use when unpaired Telegram users need additional guidance during the pairing process.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/crazypeace/telegram-pairing-message-customizationTelegram 配对消息自定义
request
实施本技能时, 需要用户提供一份 自定义消息
实施内容
1. 找到需要修改的文件
在你正在运行的代码中搜索下面的代码段
fn: () => bot.api.sendMessage(chatId, [
"OpenClaw: access not configured.",
"",
`Your Telegram user id: ${telegramUserId}`,
"",
`Pairing code: ${code}`,
"",
"Ask the bot owner to approve with:",
formatCliCommand("openclaw pairing approve telegram <code>"),
].join("\n")),
2. 备份文件
修改前备份, 方便以后撤销实施
3. 实施修改
在数组中 "Ask the bot owner to approve with:" 项上方添加自定义消息:
修改后
fn: () => bot.api.sendMessage(chatId, [
"OpenClaw: access not configured.",
"",
`Your Telegram user id: ${telegramUserId}`,
"",
`Pairing code: ${code}`,
"",
"YOUR_CUSTOM_MESSAGE_HERE", // <- 插入自定义消息
"Ask the bot owner to approve with:",
formatCliCommand("openclaw pairing approve telegram <code>"),
].join("\n")),
4. 修改完成后重启服务
openclaw gateway restart
验证
让未配对用户发送 /start 命令,确认收到带自定义信息的配对消息。
一些建议
在寻找需要修改的文件时, 建议先搜索 Ask the bot owner to approve with: 可以帮助你先大幅缩小处理范围, 过滤出最有可能的几个文件.
一个建议的起始目录为 /usr/lib/node_modules/openclaw/
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-crazypeace-telegram-pairing-message-customization": {
"enabled": true,
"auto_update": true
}
}
}Related Skills
Telethon Session
Skill by crazypeace
Openclaw Self Clone Everything
Skill by crazypeace
telegram-pairing-customization
Modify OpenClaw's Telegram pairing logic so unapproved users receive pairing codes on every /start message before approval. Use when users need to repeatedly access pairing codes after the initial request, ensuring consistent access to pairing instructions even if the initial code was missed or lost.
telegram-pairing-approver
创建一个持久运行的Telegram机器人服务,用于自动处理配对代码并批准Telegram会话权限。使用时提供机器人令牌,自动创建机器人脚本和服务文件,并启动系统服务。适用于需要自动处理Telegram配对请求的场景。
telegram-pairing-send-code-to-every-start
Modify OpenClaw's Telegram pairing logic so unapproved users receive pairing codes on every /start message before approval. Use when users need to repeatedly access pairing codes after the initial request, ensuring consistent access to pairing instructions even if the initial code was missed or lost.