总是响应未配对用户的 /start 消息 | Always respond to /start messages from unpaired users
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. Skill: 总是响应未配对用户的 /start 消息 | Always respond to /start messages from unpaired users Owner: crazypeace Summary: 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. Tags: l
Rank
62
Safety
84
Downloads
1.7k
Updated
Apr 15, 2026
Version
1.0.4
Source
CLAWHUB
About
What it does, and when to use it.
Capability contract not published. No trust telemetry is available yet. 1.7K downloads reported by the source. Last updated 4/15/2026.
Avoid when
- Contract metadata is missing or unavailable for deterministic execution.
Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing
Public facts
Every fact links back to the source it came from.
- Vendor
- Clawhubvendor · observed Apr 15, 2026
- Protocol compatibility
- OpenClawcompatibility · observed Apr 15, 2026
- Adoption signal
- 1.7K downloadsadoption · observed Apr 15, 2026
- Latest release
- 1.0.4release · observed Feb 8, 2026
- Handshake status
- UNKNOWNsecurity
Install and run
Setup complexity: low.
clawhub skill install kn769hxajq747rnm1pyf9zmtns80cn81:telegram-pairing-customization- Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.
- Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.
Contract: missing
curl -s "https://www.xpersona.co/api/v1/agents/clawhub-crazypeace-telegram-pairing-customization/snapshot"
Documentation
CLAWHUB
10,475 characters of source documentation, loaded on request.
Extracted files
2 files captured from the source.
SKILL.md
---
name: telegram-pairing-customization
description: 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 配对消息持续响应技能
## 概述
此技能描述如何修改 OpenClaw 的 Telegram 配对逻辑,使未批准的用户在配对被批准前,每次发送 `/start` 消息时都能收到配对码回复。
## 何时使用此技能
- 需要让未批准的用户每次发送 `/start` 都收到配对消息(而非仅首次)
- 用户可能错过首次配对消息,需要重新获取配对码
- 提升用户体验,确保用户始终能获得配对指引
## 执行步骤
### 1. 找到需要修改的文件
在你正在运行的代码中搜索下面的代码段
```
if (created) {
logger.info({
chatId: candidate,
username: from?.username,
firstName: from?.first_name,
lastName: from?.last_name,
matchKey: allowMatch.matchKey ?? "none",
matchSource: allowMatch.matchSource ?? "none"
}, "telegram pairing request");
await withTelegramApiErrorLogging({
operation: "sendMessage",
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. 实施修改
将条件判断从 `if (created)` 修改为 `if (code)`:
```
if (do) { // <-- 关键修改点
logger.info({
chatId: candidate,
username: from?.username,
firstName: from?.first_name,
lastName: from?.last_name,
matchKey: allowMatch.matchKey ?? "none",
matchSource: allowMatch.matchSource ?? "none"
}, "telegram pairing request");
await withTelegramApiErrorLogging({
operation: "sendMessage",
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"))
});
}
```
### 3. 重启服务
修改完成后需要重启 OpenClaw 服务以使更改生效:
```bash
openclaw gateway restart
```
## 一些建议
在寻找需要修改的文件时, 建议先搜索 `Ask the bot owner to approve with:` 可以帮助你先大幅缩小处理范围, 过滤出最有可能的几个文件.
一个建议的起始目录为 /usr/lib/node_modules/openclaw/
## 工作原理
- `upsertTelegramPairingRequest` 函数返回 `{code, created}` 对象
- 当用户首次请求配对时:`created: true`,有配对码
- 当用户再次请求配对时:`created: false`,但仍有相同的配对码(只要配对请求未过期或未被批准)
- 通过检查 `if (code)` 而不是 `if (created)`,确保用户每次请求都能收到有效的配对码
## 验证修改
- 让未配对的用户发送 `/start` 命令
- 确认用户收到配对码消息
- 再次发送 `/start` 命令,确认用户再次收到相同的配对码
## 注意事项
- 修改系统文件前务必备份原始文件
- 修改后的文件在 OpenClaw 更新时可能会被覆盖,需要重新应用修改
- 需要适当的文件系统权限来修改 OpenClaw 的安装文件
- 修改后应测试以确保功能正常
## 故障排除
- 如果修改不生效,请确认是否正确重启了 OpenClaw 服务
- 如果找不到文件路径,请确认 OpenClaw 的实际安装路径
- 如果权限不足,请使用适当的权限提升方法(如 sudo)
- 如需回滚,请使用备份文件替换修改后的文件_meta.json
{
"ownerId": "kn769hxajq747rnm1pyf9zmtns80cn81",
"slug": "telegram-pairing-customization",
"version": "1.0.4",
"publishedAt": 1770523372736
}activepieces
AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents
cherry-studio
AI productivity studio with smart chat, autonomous agents, and 300+ assistants.
AionUi
Free, local, open-source 24/7 Cowork app and OpenClaw for Gemini CLI, Claude Code, Codex, OpenCode, Qwen Code, Goose CLI, Auggie, and more | 🌟 Star if you like it!
CopilotKit
The Frontend for Agents & Generative UI. React + Angular
Machine-readable data
The same record, as JSON, for agents and crawlers.
{
"facts": [
{
"factKey": "vendor",
"category": "vendor",
"label": "Vendor",
"value": "Clawhub",
"href": "https://clawhub.ai/crazypeace/telegram-pairing-customization",
"sourceUrl": "https://clawhub.ai/crazypeace/telegram-pairing-customization",
"sourceType": "profile",
"confidence": "medium",
"observedAt": "2026-04-15T00:45:39.800Z",
"isPublic": true
},
{
"factKey": "protocols",
"category": "compatibility",
"label": "Protocol compatibility",
"value": "OpenClaw",
"href": "https://www.xpersona.co/api/v1/agents/clawhub-crazypeace-telegram-pairing-customization/contract",
"sourceUrl": "https://www.xpersona.co/api/v1/agents/clawhub-crazypeace-telegram-pairing-customization/contract",
"sourceType": "contract",
"confidence": "medium",
"observedAt": "2026-04-15T00:45:39.800Z",
"isPublic": true
},
{
"factKey": "traction",
"category": "adoption",
"label": "Adoption signal",
"value": "1.7K downloads",
"href": "https://clawhub.ai/crazypeace/telegram-pairing-customization",
"sourceUrl": "https://clawhub.ai/crazypeace/telegram-pairing-customization",
"sourceType": "profile",
"confidence": "medium",
"observedAt": "2026-04-15T00:45:39.800Z",
"isPublic": true
},
{
"factKey": "latest_release",
"category": "release",
"label": "Latest release",
"value": "1.0.4",
"href": "https://clawhub.ai/crazypeace/telegram-pairing-customization",
"sourceUrl": "https://clawhub.ai/crazypeace/telegram-pairing-customization",
"sourceType": "release",
"confidence": "medium",
"observedAt": "2026-02-08T04:02:52.736Z",
"isPublic": true
},
{
"factKey": "handshake_status",
"category": "security",
"label": "Handshake status",
"value": "UNKNOWN",
"href": "https://www.xpersona.co/api/v1/agents/clawhub-crazypeace-telegram-pairing-customization/trust",
"sourceUrl": "https://www.xpersona.co/api/v1/agents/clawhub-crazypeace-telegram-pairing-customization/trust",
"sourceType": "trust",
"confidence": "medium",
"observedAt": null,
"isPublic": true
}
],
"events": [
{
"eventType": "release",
"title": "Release 1.0.4",
"description": "- Removed the automation script apply-pairing-fix.sh; step-by-step manual modification is now required. - Updated instructions to guide users in manually locating and editing the relevant code block for Telegram pairing. - Provided practical tips for searching file locations and verifying the code change. - No changes to underlying pairing logic; usage remains the same.",
"href": "https://clawhub.ai/crazypeace/telegram-pairing-customization",
"sourceUrl": "https://clawhub.ai/crazypeace/telegram-pairing-customization",
"sourceType": "release",
"confidence": "medium",
"observedAt": "2026-02-08T04:02:52.736Z",
"isPublic": true
}
]
}Record generated Oct 9, 2026.
