# Send 总是响应未配对用户的 /start 消息 | Always respond to /start messages from unpaired users to your agent
Use the source page and any available docs to guide the install because the item currently does not return a direct package file.
## Fast path
- Open the source page via Open source listing.
- If you can obtain the package, extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the source page and extracted files.
## Suggested prompts
### New install

```text
I tried to install a skill package from Yavira, but the item currently does not return a direct package file. Inspect the source page and any extracted docs, then tell me what you can confirm and any manual steps still required.
```
### Upgrade existing

```text
I tried to upgrade a skill package from Yavira, but the item currently does not return a direct package file. Compare the source page and any extracted docs with my current installation, then summarize what changed and what manual follow-up I still need.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "telegram-pairing-send-code-to-every-start",
    "name": "总是响应未配对用户的 /start 消息 | Always respond to /start messages from unpaired users",
    "source": "tencent",
    "type": "skill",
    "category": "通讯协作",
    "sourceUrl": "https://clawhub.ai/crazypeace/telegram-pairing-send-code-to-every-start",
    "canonicalUrl": "https://clawhub.ai/crazypeace/telegram-pairing-send-code-to-every-start",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/telegram-pairing-send-code-to-every-start",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=telegram-pairing-send-code-to-every-start",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "SKILL.md"
    ],
    "downloadMode": "manual_only",
    "sourceHealth": {
      "source": "tencent",
      "slug": "telegram-pairing-send-code-to-every-start",
      "status": "source_issue",
      "reason": "not_found",
      "recommendedAction": "review_source",
      "checkedAt": "2026-05-02T05:54:49.483Z",
      "expiresAt": "2026-05-03T05:54:49.483Z",
      "httpStatus": 404,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=telegram-pairing-send-code-to-every-start",
      "contentType": "text/plain",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=telegram-pairing-send-code-to-every-start",
        "contentDisposition": null,
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "telegram-pairing-send-code-to-every-start"
      },
      "scope": "item",
      "summary": "Known item issue.",
      "detail": "This item's current download entry is known to bounce back to a listing or homepage instead of returning a package file.",
      "primaryActionLabel": "Open source listing",
      "primaryActionHref": "https://clawhub.ai/crazypeace/telegram-pairing-send-code-to-every-start"
    },
    "validation": {
      "installChecklist": [
        "Open the source listing and confirm there is a real package or setup artifact available.",
        "Review SKILL.md before asking your agent to continue.",
        "Treat this source as manual setup until the upstream download flow is fixed."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/telegram-pairing-send-code-to-every-start",
    "downloadUrl": "https://openagent3.xyz/downloads/telegram-pairing-send-code-to-every-start",
    "agentUrl": "https://openagent3.xyz/skills/telegram-pairing-send-code-to-every-start/agent",
    "manifestUrl": "https://openagent3.xyz/skills/telegram-pairing-send-code-to-every-start/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/telegram-pairing-send-code-to-every-start/agent.md"
  }
}
```
## Documentation

### 概述

此技能描述如何修改 OpenClaw 的 Telegram 配对逻辑，使未批准的用户在配对被批准前，每次发送 /start 消息时都能收到配对码回复。

### 何时使用此技能

需要让未批准的用户每次发送 /start 都收到配对消息（而非仅首次）
用户可能错过首次配对消息，需要重新获取配对码
提升用户体验，确保用户始终能获得配对指引

### 1. 找到需要修改的文件

在你正在运行的代码中搜索下面的代码段

async function issuePairingChallenge(params) {
  const { code, created } = await params.upsertPairingRequest({
    id: params.senderId,
    meta: params.meta
  });
  if (!created) return { created: false };
  params.onCreated?.({ code });
  const replyText = params.buildReplyText?.({
    code,
    senderIdLine: params.senderIdLine
  }) ?? buildPairingReply({
    channel: params.channel,
    idLine: params.senderIdLine,
    code
  });
  try {
    await params.sendPairingReply(replyText);
  } catch (err) {
    params.onReplyError?.(err);
  }
  return {
    created: true,
    code
  };
}

### 2. 实施修改

将条件判断从 if (created) 修改为 if (code):

async function issuePairingChallenge(params) {
  const { code, created } = await params.upsertPairingRequest({
    id: params.senderId,
    meta: params.meta
  });
  if (!code) return { created: false }; // <-- 关键修改点
  params.onCreated?.({ code });
  const replyText = params.buildReplyText?.({
    code,
    senderIdLine: params.senderIdLine
  }) ?? buildPairingReply({
    channel: params.channel,
    idLine: params.senderIdLine,
    code
  });
  try {
    await params.sendPairingReply(replyText);
  } catch (err) {
    params.onReplyError?.(err);
  }
  return {
    created: true,
    code
  };
}

### 3. 重启服务

修改完成后需要重启 OpenClaw 服务以使更改生效:

openclaw gateway restart

### 一些建议

在寻找需要修改的文件时, 建议先搜索 async function issuePairingChallenge(params) 可以帮助你先大幅缩小处理范围, 过滤出需要修改的文件.

一个建议的起始目录为 /usr/lib/node_modules/openclaw/

### 验证修改

让未配对的用户发送 /start 命令
确认用户收到配对码消息
再次发送 /start 命令，确认用户再次收到相同的配对码

### 注意事项

修改系统文件前务必备份原始文件
修改后的文件在 OpenClaw 更新时可能会被覆盖，需要重新应用修改

### 故障排除

如果修改不生效，请确认是否正确重启了 OpenClaw 服务
如果找不到文件路径，请确认 OpenClaw 的实际安装路径
如果权限不足，请使用适当的权限提升方法（如 sudo）
如需回滚，请使用备份文件替换修改后的文件
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: crazypeace
- Version: 1.0.2
## Source health
- Status: source_issue
- Known item issue.
- This item's current download entry is known to bounce back to a listing or homepage instead of returning a package file.
- Health scope: item
- Reason: not_found
- Checked at: 2026-05-02T05:54:49.483Z
- Expires at: 2026-05-03T05:54:49.483Z
- Recommended action: Open source listing
## Links
- [Detail page](https://openagent3.xyz/skills/telegram-pairing-send-code-to-every-start)
- [Send to Agent page](https://openagent3.xyz/skills/telegram-pairing-send-code-to-every-start/agent)
- [JSON manifest](https://openagent3.xyz/skills/telegram-pairing-send-code-to-every-start/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/telegram-pairing-send-code-to-every-start/agent.md)
- [Download page](https://openagent3.xyz/downloads/telegram-pairing-send-code-to-every-start)