{"id":"1100d472-b90b-4c2e-99c7-7d968c41725e","slug":"clawhub-crazypeace-telegram-pairing-customization","name":"总是响应未配对用户的 /start 消息 | Always respond to /start messages from unpaired users","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.","canonicalUrl":"https://www.xpersona.co/agent/clawhub-crazypeace-telegram-pairing-customization","sourceUrl":"https://clawhub.ai/crazypeace/telegram-pairing-customization","homepage":"https://clawhub.ai/crazypeace/telegram-pairing-customization","source":"CLAWHUB","vendor":{"slug":"clawhub","label":"Clawhub","url":"https://clawhub.ai/crazypeace/telegram-pairing-customization"},"protocols":["OPENCLEW"],"capabilities":[],"trustScore":null,"trustConfidence":"unknown","artifactCount":0,"benchmarkCount":0,"lastRelease":"1.0.4","freshnessAt":"2026-02-28T20:44:01.639Z","freshnessLabel":"Feb 28, 2026","securityReviewed":true,"openapiReady":false,"stats":[{"label":"Trust score","value":"Unknown"},{"label":"Compatibility","value":"OpenClaw"},{"label":"Freshness","value":"Feb 28, 2026"},{"label":"Vendor","value":"Clawhub"},{"label":"Artifacts","value":"0"},{"label":"Benchmarks","value":"0"},{"label":"Last release","value":"1.0.4"}],"factsPreview":[{"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}],"highlights":["1.7K downloads","Trust evidence available"],"agentCard":{"name":"总是响应未配对用户的 /start 消息 | Always respond to /start messages from unpaired users","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.","source":"CLAWHUB","sourceId":"clawhub:kn769hxajq747rnm1pyf9zmtns80cn81:telegram-pairing-customization","homepage":"https://clawhub.ai/crazypeace/telegram-pairing-customization","repository":"https://clawhub.ai/crazypeace/telegram-pairing-customization","documentation":"https://www.xpersona.co/agent/clawhub-crazypeace-telegram-pairing-customization","protocols":["OPENCLEW"],"examples":[{"kind":"example","language":"text","snippet":"if (created) {\n  logger.info({\n    chatId: candidate,\n    username: from?.username,\n    firstName: from?.first_name,\n    lastName: from?.last_name,\n    matchKey: allowMatch.matchKey ?? \"none\",\n    matchSource: allowMatch.matchSource ?? \"none\"\n  }, \"telegram pairing request\");\n  await withTelegramApiErrorLogging({\n    operation: \"sendMessage\",\n    fn: () => bot.api.sendMessage(chatId, [\n      \"OpenClaw: access not configured.\",\n      \"\",\n      `Your Telegram user id: ${telegramUserId}`,\n      \"\",\n      `Pairing code: ${code}`,\n      \"\",\n      \"Ask the bot owner to approve with:\",\n      formatCliCommand(\"openclaw pairing approve telegram <code>\")\n    ].join(\"\\n\"))\n  });\n}"},{"kind":"example","language":"text","snippet":"if (do) { // <-- 关键修改点\n  logger.info({\n    chatId: candidate,\n    username: from?.username,\n    firstName: from?.first_name,\n    lastName: from?.last_name,\n    matchKey: allowMatch.matchKey ?? \"none\",\n    matchSource: allowMatch.matchSource ?? \"none\"\n  }, \"telegram pairing request\");\n  await withTelegramApiErrorLogging({\n    operation: \"sendMessage\",\n    fn: () => bot.api.sendMessage(chatId, [\n      \"OpenClaw: access not configured.\",\n      \"\",\n      `Your Telegram user id: ${telegramUserId}`,\n      \"\",\n      `Pairing code: ${code}`,\n      \"\",\n      \"Ask the bot owner to approve with:\",\n      formatCliCommand(\"openclaw pairing approve telegram <code>\")\n    ].join(\"\\n\"))\n  });\n}"}]}}