{"id":20,"date":"2026-03-21T22:47:13","date_gmt":"2026-03-21T14:47:13","guid":{"rendered":"https:\/\/pa.yingzhi8.cn\/index.php\/2026\/03\/21\/channels-feishu\/"},"modified":"2026-03-21T23:29:21","modified_gmt":"2026-03-21T15:29:21","slug":"channels-feishu","status":"publish","type":"post","link":"https:\/\/pa.yingzhi8.cn\/index.php\/2026\/03\/21\/channels-feishu\/","title":{"rendered":"\u98de\u4e66"},"content":{"rendered":"<h1>\u98de\u4e66<\/h1>\n<h1>\u98de\u4e66\u673a\u5668\u4eba<\/h1>\n<p>\u98de\u4e66\uff08Lark\uff09\u662f\u4f01\u4e1a\u7528\u4e8e\u6d88\u606f\u6c9f\u901a\u4e0e\u534f\u4f5c\u7684\u56e2\u961f\u804a\u5929\u5e73\u53f0\u3002\u6b64\u63d2\u4ef6\u901a\u8fc7\u5e73\u53f0\u7684 WebSocket \u4e8b\u4ef6\u8ba2\u9605\u5c06 OpenClaw \u8fde\u63a5\u5230\u98de\u4e66\/Lark \u673a\u5668\u4eba\uff0c\u56e0\u6b64\u65e0\u9700\u66b4\u9732\u516c\u5171 webhook URL \u5373\u53ef\u63a5\u6536\u6d88\u606f\u3002<\/p>\n<hr \/>\n<h2>\u6346\u7ed1\u63d2\u4ef6<\/h2>\n<p>\u98de\u4e66\u968f\u5f53\u524d\u7684 OpenClaw \u7248\u672c\u4e00\u540c\u6346\u7ed1\u63d0\u4f9b\uff0c\u56e0\u6b64\u65e0\u9700\u5355\u72ec\u5b89\u88c5\u63d2\u4ef6\u3002<\/p>\n<p>\u5982\u679c\u4f60\u4f7f\u7528\u7684\u662f\u8f83\u65e7\u7248\u672c\uff0c\u6216\u4f7f\u7528\u4e86\u4e0d\u5305\u542b\u6346\u7ed1\u98de\u4e66\u7684\u81ea\u5b9a\u4e49\u5b89\u88c5\uff0c\u8bf7\u624b\u52a8\u5b89\u88c5\uff1a<\/p>\n<p>&#8220;`bash  theme={&#8220;theme&#8221;:{&#8220;light&#8221;:&#8221;min-light&#8221;,&#8221;dark&#8221;:&#8221;min-dark&#8221;}}<br \/>\nopenclaw plugins install @openclaw\/feishu<\/p>\n<pre><code>\n***\n\n## \u5feb\u901f\u5f00\u59cb\n\n\u6709\u4e24\u79cd\u65b9\u5f0f\u53ef\u6dfb\u52a0\u98de\u4e66\u6e20\u9053\uff1a\n\n### \u65b9\u6cd5 1\uff1a\u8bbe\u7f6e\u5411\u5bfc\uff08\u63a8\u8350\uff09\n\n\u5982\u679c\u4f60\u521a\u5b89\u88c5 OpenClaw\uff0c\u8bf7\u8fd0\u884c\u8bbe\u7f6e\u5411\u5bfc\uff1a\n\n```bash  theme={&quot;theme&quot;:{&quot;light&quot;:&quot;min-light&quot;,&quot;dark&quot;:&quot;min-dark&quot;}}\nopenclaw onboard\n<\/code><\/pre>\n<p>\u5411\u5bfc\u4f1a\u5f15\u5bfc\u4f60\u5b8c\u6210\u4ee5\u4e0b\u6b65\u9aa4\uff1a<\/p>\n<ol>\n<li>\u521b\u5efa\u98de\u4e66\u5e94\u7528\u5e76\u6536\u96c6\u51ed\u8bc1<\/li>\n<li>\u5728 OpenClaw \u4e2d\u914d\u7f6e\u5e94\u7528\u51ed\u8bc1<\/li>\n<li>\u542f\u52a8 Gateway \u7f51\u5173 \u7f51\u5173<\/li>\n<\/ol>\n<p>\u2705 <strong>\u914d\u7f6e\u5b8c\u6210\u540e<\/strong>\uff0c\u68c0\u67e5 Gateway \u7f51\u5173 \u7f51\u5173\u72b6\u6001\uff1a<\/p>\n<ul>\n<li><code>openclaw gateway status<\/code><\/li>\n<li><code>openclaw logs --follow<\/code><\/li>\n<\/ul>\n<h3>\u65b9\u6cd5 2\uff1aCLI \u8bbe\u7f6e<\/h3>\n<p>\u5982\u679c\u4f60\u5df2\u7ecf\u5b8c\u6210\u521d\u59cb\u5b89\u88c5\uff0c\u53ef\u901a\u8fc7 CLI \u6dfb\u52a0\u8be5\u6e20\u9053\uff1a<\/p>\n<p>&#8220;`bash  theme={&#8220;theme&#8221;:{&#8220;light&#8221;:&#8221;min-light&#8221;,&#8221;dark&#8221;:&#8221;min-dark&#8221;}}<br \/>\nopenclaw \u6e20\u9053s add<\/p>\n<pre><code>\n\u9009\u62e9 **Feishu**\uff0c\u7136\u540e\u8f93\u5165 App ID \u548c App Secret\u3002\n\n\u2705 **\u914d\u7f6e\u5b8c\u6210\u540e**\uff0c\u7ba1\u7406 Gateway \u7f51\u5173\uff1a\n\n* `openclaw gateway status`\n* `openclaw gateway restart`\n* `openclaw logs --follow`\n\n***\n\n## \u7b2c 1 \u6b65\uff1a\u521b\u5efa\u98de\u4e66\u5e94\u7528\n\n### 1. \u6253\u5f00\u98de\u4e66\u5f00\u653e\u5e73\u53f0\n\n\u8bbf\u95ee [Feishu Open Platform](https:\/\/open.feishu.cn\/app) \u5e76\u767b\u5f55\u3002\n\nLark\uff08\u56fd\u9645\u7248\uff09\u79df\u6237\u5e94\u4f7f\u7528 [https:\/\/open.larksuite.com\/app](https:\/\/open.larksuite.com\/app)\uff0c\u5e76\u5728\u98de\u4e66\u914d\u7f6e\u4e2d\u8bbe\u7f6e `domain: &quot;lark&quot;`\u3002\n\n### 2. \u521b\u5efa\u5e94\u7528\n\n1. \u70b9\u51fb **Create enterprise app**\n2. \u586b\u5199\u5e94\u7528\u540d\u79f0\u548c\u63cf\u8ff0\n3. \u9009\u62e9\u5e94\u7528\u56fe\u6807\n\n&lt;img src=&quot;https:\/\/mintlify.s3.us-west-1.amazonaws.com\/clawdhub\/zh-CN\/images\/feishu-step2-create-app.png&quot; alt=&quot;Create enterprise app&quot; \/&gt;\n\n### 3. \u590d\u5236\u51ed\u8bc1\n\n\u5728 **Credentials &amp; Basic Info** \u4e2d\uff0c\u590d\u5236\uff1a\n\n* **App ID**\uff08\u683c\u5f0f\uff1a`cli_xxx`\uff09\n* **App Secret**\n\n\u2757 **\u91cd\u8981\uff1a**\u8bf7\u5c06 App Secret \u59a5\u5584\u4fdd\u5bc6\u3002\n\n&lt;img src=&quot;https:\/\/mintlify.s3.us-west-1.amazonaws.com\/clawdhub\/zh-CN\/images\/feishu-step3-credentials.png&quot; alt=&quot;Get credentials&quot; \/&gt;\n\n### 4. \u914d\u7f6e\u6743\u9650\n\n\u5728 **Permissions** \u4e2d\uff0c\u70b9\u51fb **Batch import** \u5e76\u7c98\u8d34\uff1a\n\n```json  theme={&quot;theme&quot;:{&quot;light&quot;:&quot;min-light&quot;,&quot;dark&quot;:&quot;min-dark&quot;}}\n{\n  &quot;scopes&quot;: {\n    &quot;tenant&quot;: [\n      &quot;aily:file:read&quot;,\n      &quot;aily:file:write&quot;,\n      &quot;application:application.app_message_stats.overview:readonly&quot;,\n      &quot;application:application:self_manage&quot;,\n      &quot;application:bot.menu:write&quot;,\n      &quot;cardkit:card:read&quot;,\n      &quot;cardkit:card:write&quot;,\n      &quot;contact:user.employee_id:readonly&quot;,\n      &quot;corehr:file:download&quot;,\n      &quot;event:ip_list&quot;,\n      &quot;im:chat.access_event.bot_p2p_chat:read&quot;,\n      &quot;im:chat.members:bot_access&quot;,\n      &quot;im:message&quot;,\n      &quot;im:message.group_at_msg:readonly&quot;,\n      &quot;im:message.p2p_msg:readonly&quot;,\n      &quot;im:message:readonly&quot;,\n      &quot;im:message:send_as_bot&quot;,\n      &quot;im:resource&quot;\n    ],\n    &quot;user&quot;: [&quot;aily:file:read&quot;, &quot;aily:file:write&quot;, &quot;im:chat.access_event.bot_p2p_chat:read&quot;]\n  }\n}\n<\/code><\/pre>\n<p><img decoding=\"async\" src=\"https:\/\/mintlify.s3.us-west-1.amazonaws.com\/clawdhub\/zh-CN\/images\/feishu-step4-permissions.png\" alt=\"Configure permissions\" \/><\/p>\n<h3>5. \u542f\u7528\u673a\u5668\u4eba\u80fd\u529b<\/h3>\n<p>\u5728 <strong>App Capability<\/strong> &gt; <strong>Bot<\/strong> \u4e2d\uff1a<\/p>\n<ol>\n<li>\u542f\u7528\u673a\u5668\u4eba\u80fd\u529b<\/li>\n<li>\u8bbe\u7f6e\u673a\u5668\u4eba\u540d\u79f0<\/li>\n<\/ol>\n<p><img decoding=\"async\" src=\"https:\/\/mintlify.s3.us-west-1.amazonaws.com\/clawdhub\/zh-CN\/images\/feishu-step5-bot-capability.png\" alt=\"Enable bot capability\" \/><\/p>\n<h3>6. \u914d\u7f6e\u4e8b\u4ef6\u8ba2\u9605<\/h3>\n<p>\u26a0\ufe0f **\u91cd\u8981\uff1a**\u5728\u8bbe\u7f6e\u4e8b\u4ef6\u8ba2\u9605\u524d\uff0c\u8bf7\u8bf7\u786e\u4fdd\uff1a<\/p>\n<ol>\n<li>\u4f60\u5df2\u7ecf\u4e3a\u98de\u4e66\u8fd0\u884c\u8fc7 <code>openclaw channels add<\/code><\/li>\n<li>Gateway \u7f51\u5173 \u7f51\u5173\u6b63\u5728\u8fd0\u884c\uff08<code>openclaw gateway status<\/code>\uff09<\/li>\n<\/ol>\n<p>\u5728 <strong>Event Subscription<\/strong> \u4e2d\uff1a<\/p>\n<ol>\n<li>\u9009\u62e9 <strong>Use long connection to receive events<\/strong>\uff08WebSocket\uff09<\/li>\n<li>\u6dfb\u52a0\u4e8b\u4ef6\uff1a<code>im.message.receive_v1<\/code><\/li>\n<\/ol>\n<p>\u26a0\ufe0f \u5982\u679c Gateway \u7f51\u5173 \u7f51\u5173\u672a\u8fd0\u884c\uff0c\u957f\u8fde\u63a5\u8bbe\u7f6e\u53ef\u80fd\u65e0\u6cd5\u4fdd\u5b58\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/mintlify.s3.us-west-1.amazonaws.com\/clawdhub\/zh-CN\/images\/feishu-step6-event-subscription.png\" alt=\"Configure event subscription\" \/><\/p>\n<h3>7. \u53d1\u5e03\u5e94\u7528<\/h3>\n<ol>\n<li>\u5728 <strong>Version Management &amp; Release<\/strong> \u4e2d\u521b\u5efa\u7248\u672c<\/li>\n<li>\u63d0\u4ea4\u5ba1\u6838\u5e76\u53d1\u5e03<\/li>\n<li>\u7b49\u5f85\u7ba1\u7406\u5458\u6279\u51c6\uff08\u4f01\u4e1a\u5e94\u7528\u901a\u5e38\u4f1a\u81ea\u52a8\u6279\u51c6\uff09<\/li>\n<\/ol>\n<hr \/>\n<h2>\u7b2c 2 \u6b65\uff1a\u914d\u7f6e OpenClaw<\/h2>\n<h3>\u4f7f\u7528\u5411\u5bfc\u914d\u7f6e\uff08\u63a8\u8350\uff09<\/h3>\n<p>&#8220;`bash  theme={&#8220;theme&#8221;:{&#8220;light&#8221;:&#8221;min-light&#8221;,&#8221;dark&#8221;:&#8221;min-dark&#8221;}}<br \/>\nopenclaw \u6e20\u9053s add<\/p>\n<pre><code>\n\u9009\u62e9 **Feishu**\uff0c\u7136\u540e\u7c98\u8d34\u4f60\u7684 App ID \u548c App Secret\u3002\n\n### \u901a\u8fc7\u914d\u7f6e\u6587\u4ef6\u8fdb\u884c\u914d\u7f6e\n\n\u7f16\u8f91 `~\/.openclaw\/openclaw.json`\uff1a\n\n```json5  theme={&quot;theme&quot;:{&quot;light&quot;:&quot;min-light&quot;,&quot;dark&quot;:&quot;min-dark&quot;}}\n{\n  channels: {\n    feishu: {\n      enabled: true,\n      dmPolicy: &quot;pairing&quot;,\n      accounts: {\n        main: {\n          appId: &quot;cli_xxx&quot;,\n          appSecret: &quot;xxx&quot;,\n          botName: &quot;My AI assistant&quot;,\n        },\n      },\n    },\n  },\n}\n<\/code><\/pre>\n<p>\u5982\u679c\u4f60\u4f7f\u7528 <code>connectionMode: \"webhook\"<\/code>\uff0c\u8bf7\u540c\u65f6\u8bbe\u7f6e <code>verificationToken<\/code> \u548c <code>encryptKey<\/code>\u3002\u98de\u4e66 webhook \u670d\u52a1\u5668\u9ed8\u8ba4\u7ed1\u5b9a\u5230 <code>127.0.0.1<\/code>\uff1b\u53ea\u6709\u5728\u4f60\u660e\u786e\u9700\u8981\u4e0d\u540c\u7ed1\u5b9a\u5730\u5740\u65f6\uff0c\u624d\u8bbe\u7f6e <code>webhookHost<\/code>\u3002<\/p>\n<h4>Verification Token \u548c Encrypt Key\uff08webhook \u6a21\u5f0f\uff09<\/h4>\n<p>\u4f7f\u7528 webhook \u6a21\u5f0f\u65f6\uff0c\u8bf7\u5728\u914d\u7f6e\u4e2d\u540c\u65f6\u8bbe\u7f6e <code>channels.feishu.verificationToken<\/code> \u548c <code>channels.feishu.encryptKey<\/code>\u3002\u83b7\u53d6\u8fd9\u4e9b\u503c\u7684\u65b9\u6cd5\u5982\u4e0b\uff1a<\/p>\n<ol>\n<li>\u5728\u98de\u4e66\u5f00\u653e\u5e73\u53f0\u4e2d\uff0c\u6253\u5f00\u4f60\u7684\u5e94\u7528<\/li>\n<li>\u524d\u5f80 <strong>Development<\/strong> \u2192 <strong>Events &amp; Callbacks<\/strong>\uff08\u5f00\u53d1\u914d\u7f6e \u2192 \u4e8b\u4ef6\u4e0e\u56de\u8c03\uff09<\/li>\n<li>\u6253\u5f00 <strong>Encryption<\/strong> \u6807\u7b7e\u9875\uff08\u52a0\u5bc6\u7b56\u7565\uff09<\/li>\n<li>\u590d\u5236 <strong>Verification Token<\/strong> \u548c <strong>Encrypt Key<\/strong><\/li>\n<\/ol>\n<p>\u4e0b\u56fe\u5c55\u793a\u4e86 <strong>Verification Token<\/strong> \u7684\u4f4d\u7f6e\u3002<strong>Encrypt Key<\/strong> \u4f4d\u4e8e\u540c\u4e00\u4e2a <strong>Encryption<\/strong> \u533a\u57df\u4e2d\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/mintlify.s3.us-west-1.amazonaws.com\/clawdhub\/zh-CN\/images\/feishu-verification-token.png\" alt=\"Verification Token location\" \/><\/p>\n<h3>\u901a\u8fc7\u73af\u5883\u53d8\u91cf\u914d\u7f6e<\/h3>\n<p>&#8220;`bash  theme={&#8220;theme&#8221;:{&#8220;light&#8221;:&#8221;min-light&#8221;,&#8221;dark&#8221;:&#8221;min-dark&#8221;}}<br \/>\nexport FEISHU_APP_ID=&#8221;cli_xxx&#8221;<br \/>\nexport FEISHU_APP_SECRET=&#8221;xxx&#8221;<\/p>\n<pre><code>\n### Lark\uff08\u56fd\u9645\u7248\uff09\u57df\u540d\n\n\u5982\u679c\u4f60\u7684\u79df\u6237\u4f4d\u4e8e Lark\uff08\u56fd\u9645\u7248\uff09\uff0c\u8bf7\u5c06\u57df\u540d\u8bbe\u7f6e\u4e3a `lark`\uff08\u6216\u5b8c\u6574\u57df\u540d\u5b57\u4e32\uff09\u3002\u4f60\u53ef\u4ee5\u5728 `channels.feishu.domain` \u8bbe\u7f6e\uff0c\u4e5f\u53ef\u4ee5\u6309\u8d26\u6237\u8bbe\u7f6e\uff08`channels.feishu.accounts.&lt;id&gt;.domain`\uff09\u3002\n\n```json5  theme={&quot;theme&quot;:{&quot;light&quot;:&quot;min-light&quot;,&quot;dark&quot;:&quot;min-dark&quot;}}\n{\n  channels: {\n    feishu: {\n      domain: &quot;lark&quot;,\n      accounts: {\n        main: {\n          appId: &quot;cli_xxx&quot;,\n          appSecret: &quot;xxx&quot;,\n        },\n      },\n    },\n  },\n}\n<\/code><\/pre>\n<h3>\u914d\u989d\u4f18\u5316\u6807\u5fd7<\/h3>\n<p>\u4f60\u53ef\u4ee5\u4f7f\u7528\u4e24\u4e2a\u53ef\u9009\u6807\u5fd7\u6765\u51cf\u5c11\u98de\u4e66 API \u4f7f\u7528\u91cf\uff1a<\/p>\n<ul>\n<li><code>typingIndicator<\/code>\uff08\u9ed8\u8ba4 <code>true<\/code>\uff09\uff1a\u8bbe\u4e3a <code>false<\/code> \u65f6\uff0c\u8df3\u8fc7\u201c\u6b63\u5728\u8f93\u5165\u201d\u53cd\u5e94\u8c03\u7528\u3002<\/li>\n<li><code>resolveSenderNames<\/code>\uff08\u9ed8\u8ba4 <code>true<\/code>\uff09\uff1a\u8bbe\u4e3a <code>false<\/code> \u65f6\uff0c\u8df3\u8fc7\u53d1\u9001\u8005\u8d44\u6599\u67e5\u8be2\u8c03\u7528\u3002<\/li>\n<\/ul>\n<p>\u4f60\u53ef\u4ee5\u5728\u9876\u5c42\u6216\u6309\u8d26\u6237\u8fdb\u884c\u8bbe\u7f6e\uff1a<\/p>\n<p>&#8220;`json5  theme={&#8220;theme&#8221;:{&#8220;light&#8221;:&#8221;min-light&#8221;,&#8221;dark&#8221;:&#8221;min-dark&#8221;}}<br \/>\n{<br \/>\n  \u6e20\u9053s: {<br \/>\n    feishu: {<br \/>\n      typingIndicator: false,<br \/>\n      resolveSenderNames: false,<br \/>\n      accounts: {<br \/>\n        main: {<br \/>\n          appId: &#8220;cli_xxx&#8221;,<br \/>\n          appSecret: &#8220;xxx&#8221;,<br \/>\n          typingIndicator: true,<br \/>\n          resolveSenderNames: false,<br \/>\n        },<br \/>\n      },<br \/>\n    },<br \/>\n  },<br \/>\n}<\/p>\n<pre><code>\n***\n\n## \u7b2c 3 \u6b65\uff1a\u542f\u52a8\u5e76\u6d4b\u8bd5\n\n### 1. \u542f\u52a8 Gateway \u7f51\u5173\n\n```bash  theme={&quot;theme&quot;:{&quot;light&quot;:&quot;min-light&quot;,&quot;dark&quot;:&quot;min-dark&quot;}}\nopenclaw gateway\n<\/code><\/pre>\n<h3>2. \u53d1\u9001\u6d4b\u8bd5\u6d88\u606f<\/h3>\n<p>\u5728\u98de\u4e66\u4e2d\u627e\u5230\u4f60\u7684\u673a\u5668\u4eba\u5e76\u53d1\u9001\u4e00\u6761\u6d88\u606f\u3002<\/p>\n<h3>3. \u6279\u51c6\u914d\u5bf9<\/h3>\n<p>\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c\u673a\u5668\u4eba\u4f1a\u56de\u590d\u4e00\u4e2a\u914d\u5bf9\u7801\u3002\u6279\u51c6\u5b83\uff1a<\/p>\n<p>&#8220;`bash  theme={&#8220;theme&#8221;:{&#8220;light&#8221;:&#8221;min-light&#8221;,&#8221;dark&#8221;:&#8221;min-dark&#8221;}}<br \/>\nopenclaw pairing approve feishu <CODE><\/p>\n<pre><code>\n\u6279\u51c6\u540e\uff0c\u4f60\u5c31\u53ef\u4ee5\u6b63\u5e38\u804a\u5929\u4e86\u3002\n\n***\n\n## \u6982\u89c8\n\n* **\u98de\u4e66\u673a\u5668\u4eba\u6e20\u9053**\uff1a\u7531 Gateway \u7f51\u5173\u7ba1\u7406\u7684\u98de\u4e66\u673a\u5668\u4eba\n* **\u786e\u5b9a\u6027\u8def\u7531**\uff1a\u56de\u590d\u59cb\u7ec8\u8fd4\u56de\u5230\u98de\u4e66\n* **\u4f1a\u8bdd\u9694\u79bb**\uff1a\u79c1\u4fe1\u5171\u4eab\u4e3b\u4f1a\u8bdd\uff1b\u7fa4\u7ec4\u5f7c\u6b64\u9694\u79bb\n* **WebSocket \u8fde\u63a5**\uff1a\u901a\u8fc7\u98de\u4e66 SDK \u5efa\u7acb\u957f\u8fde\u63a5\uff0c\u65e0\u9700\u516c\u5171 URL\n\n***\n\n## \u8bbf\u95ee\u63a7\u5236\n\n### \u79c1\u4fe1\n\n* **\u9ed8\u8ba4**\uff1a`dmPolicy: &quot;pairing&quot;`\uff08\u672a\u77e5\u7528\u6237\u4f1a\u6536\u5230\u914d\u5bf9\u7801\uff09\n\n* **\u6279\u51c6\u914d\u5bf9**\uff1a\n\n  ```bash  theme={&quot;theme&quot;:{&quot;light&quot;:&quot;min-light&quot;,&quot;dark&quot;:&quot;min-dark&quot;}}\n  openclaw pairing list feishu\n  openclaw pairing approve feishu &lt;CODE&gt;\n  ```\n\n* **Allowlist \u6a21\u5f0f**\uff1a\u8bbe\u7f6e `channels.feishu.allowFrom`\uff0c\u586b\u5165\u5141\u8bb8\u7684 Open ID\n\n### \u7fa4\u804a\n\n**1. \u7fa4\u7ec4\u7b56\u7565**\uff08`channels.feishu.groupPolicy`\uff09\uff1a\n\n* `&quot;open&quot;` = \u5141\u8bb8\u7fa4\u7ec4\u4e2d\u7684\u6240\u6709\u4eba\uff08\u9ed8\u8ba4\uff09\n* `&quot;allowlist&quot;` = \u4ec5\u5141\u8bb8 `groupAllowFrom`\n* `&quot;disabled&quot;` = \u7981\u7528\u7fa4\u6d88\u606f\n\n**2. \u63d0\u53ca\u8981\u6c42**\uff08`channels.feishu.groups.&lt;chat_id&gt;.requireMention`\uff09\uff1a\n\n* `true` = \u9700\u8981 @ \u63d0\u53ca\uff08\u9ed8\u8ba4\uff09\n* `false` = \u65e0\u9700\u63d0\u53ca\u4e5f\u4f1a\u56de\u590d\n\n***\n\n## \u7fa4\u7ec4\u914d\u7f6e\u793a\u4f8b\n\n### \u5141\u8bb8\u6240\u6709\u7fa4\u7ec4\uff0c\u8981\u6c42 @ \u63d0\u53ca\uff08\u9ed8\u8ba4\uff09\n\n```json5  theme={&quot;theme&quot;:{&quot;light&quot;:&quot;min-light&quot;,&quot;dark&quot;:&quot;min-dark&quot;}}\n{\n  channels: {\n    feishu: {\n      groupPolicy: &quot;open&quot;,\n      \/\/ Default requireMention: true\n    },\n  },\n}\n<\/code><\/pre>\n<h3>\u5141\u8bb8\u6240\u6709\u7fa4\u7ec4\uff0c\u65e0\u9700 @ \u63d0\u53ca<\/h3>\n<p>&#8220;`json5  theme={&#8220;theme&#8221;:{&#8220;light&#8221;:&#8221;min-light&#8221;,&#8221;dark&#8221;:&#8221;min-dark&#8221;}}<br \/>\n{<br \/>\n  \u6e20\u9053s: {<br \/>\n    feishu: {<br \/>\n      groups: {<br \/>\n        oc_xxx: { requireMention: false },<br \/>\n      },<br \/>\n    },<br \/>\n  },<br \/>\n}<\/p>\n<pre><code>\n### \u4ec5\u5141\u8bb8\u7279\u5b9a\u7fa4\u7ec4\n\n```json5  theme={&quot;theme&quot;:{&quot;light&quot;:&quot;min-light&quot;,&quot;dark&quot;:&quot;min-dark&quot;}}\n{\n  channels: {\n    feishu: {\n      groupPolicy: &quot;allowlist&quot;,\n      \/\/ Feishu group IDs (chat_id) look like: oc_xxx\n      groupAllowFrom: [&quot;oc_xxx&quot;, &quot;oc_yyy&quot;],\n    },\n  },\n}\n<\/code><\/pre>\n<h3>\u9650\u5236\u54ea\u4e9b\u53d1\u9001\u8005\u53ef\u4ee5\u5728\u7fa4\u7ec4\u4e2d\u53d1\u6d88\u606f\uff08\u53d1\u9001\u8005 allowlist\uff09<\/h3>\n<p>\u9664\u4e86\u5141\u8bb8\u7fa4\u7ec4\u672c\u8eab\u5916\uff0c\u8be5\u7fa4\u7ec4\u4e2d\u7684<strong>\u6240\u6709\u6d88\u606f<\/strong>\u8fd8\u4f1a\u6309\u53d1\u9001\u8005 <code>open_id<\/code> \u8fdb\u884c\u9650\u5236\uff1a\u53ea\u6709\u5217\u5728 <code>groups.&lt;chat_id&gt;.allowFrom<\/code> \u4e2d\u7684\u7528\u6237\uff0c\u5176\u6d88\u606f\u624d\u4f1a\u88ab\u5904\u7406\uff1b\u5176\u4ed6\u6210\u5458\u53d1\u9001\u7684\u6d88\u606f\u4f1a\u88ab\u5ffd\u7565\uff08\u8fd9\u662f\u5b8c\u6574\u7684\u53d1\u9001\u8005\u7ea7\u9650\u5236\uff0c\u800c\u4e0d\u53ea\u662f\u5bf9 <code>\/reset<\/code> \u6216 <code>\/new<\/code> \u7b49\u63a7\u5236\u547d\u4ee4\u751f\u6548\uff09\u3002<\/p>\n<p>&#8220;`json5  theme={&#8220;theme&#8221;:{&#8220;light&#8221;:&#8221;min-light&#8221;,&#8221;dark&#8221;:&#8221;min-dark&#8221;}}<br \/>\n{<br \/>\n  \u6e20\u9053s: {<br \/>\n    feishu: {<br \/>\n      groupPolicy: &#8220;allowlist&#8221;,<br \/>\n      groupAllowFrom: [&#8220;oc_xxx&#8221;],<br \/>\n      groups: {<br \/>\n        oc_xxx: {<br \/>\n          \/\/ Feishu user IDs (open_id) look like: ou_xxx<br \/>\n          allowFrom: [&#8220;ou_user1&#8221;, &#8220;ou_user2&#8221;],<br \/>\n        },<br \/>\n      },<br \/>\n    },<br \/>\n  },<br \/>\n}<\/p>\n<pre><code>\n***\n\n## \u83b7\u53d6\u7fa4\u7ec4\/\u7528\u6237 ID\n\n### \u7fa4\u7ec4 ID\uff08`chat_id`\uff09\n\n\u7fa4\u7ec4 ID \u770b\u8d77\u6765\u50cf `oc_xxx`\u3002\n\n**\u65b9\u6cd5 1\uff08\u63a8\u8350\uff09**\n\n1. \u542f\u52a8 Gateway \u7f51\u5173\u5e76\u5728\u7fa4\u91cc @ \u63d0\u53ca\u673a\u5668\u4eba\n2. \u8fd0\u884c `openclaw logs --follow` \u5e76\u67e5\u627e `chat_id`\n\n**\u65b9\u6cd5 2**\n\n\u4f7f\u7528\u98de\u4e66 API \u8c03\u8bd5\u5668\u5217\u51fa\u7fa4\u804a\u3002\n\n### \u7528\u6237 ID\uff08`open_id`\uff09\n\n\u7528\u6237 ID \u770b\u8d77\u6765\u50cf `ou_xxx`\u3002\n\n**\u65b9\u6cd5 1\uff08\u63a8\u8350\uff09**\n\n1. \u542f\u52a8 Gateway \u7f51\u5173\u5e76\u5411\u673a\u5668\u4eba\u53d1\u9001\u79c1\u4fe1\n2. \u8fd0\u884c `openclaw logs --follow` \u5e76\u67e5\u627e `open_id`\n\n**\u65b9\u6cd5 2**\n\n\u68c0\u67e5\u914d\u5bf9\u8bf7\u6c42\u4e2d\u7684\u7528\u6237 Open ID\uff1a\n\n```bash  theme={&quot;theme&quot;:{&quot;light&quot;:&quot;min-light&quot;,&quot;dark&quot;:&quot;min-dark&quot;}}\nopenclaw pairing list feishu\n<\/code><\/pre>\n<hr \/>\n<h2>\u5e38\u7528\u547d\u4ee4<\/h2>\n<table>\n<thead>\n<tr>\n<th>Command<\/th>\n<th>Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><code>\/status<\/code><\/td>\n<td>\u663e\u793a\u673a\u5668\u4eba\u72b6\u6001<\/td>\n<\/tr>\n<tr>\n<td><code>\/reset<\/code><\/td>\n<td>\u91cd\u7f6e\u4f1a\u8bdd<\/td>\n<\/tr>\n<tr>\n<td><code>\/model<\/code><\/td>\n<td>\u663e\u793a\/\u5207\u6362\u6a21\u578b<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<blockquote>\n<p>\u6ce8\u610f\uff1a\u98de\u4e66\u6682\u4e0d\u652f\u6301\u539f\u751f\u547d\u4ee4\u83dc\u5355\uff0c\u56e0\u6b64\u547d\u4ee4\u5fc5\u987b\u4ee5\u6587\u672c\u5f62\u5f0f\u53d1\u9001\u3002<\/p>\n<\/blockquote>\n<h2>Gateway \u7f51\u5173 \u7f51\u5173\u7ba1\u7406\u547d\u4ee4<\/h2>\n<table>\n<thead>\n<tr>\n<th>Command<\/th>\n<th>Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><code>openclaw gateway status<\/code><\/td>\n<td>\u663e\u793a Gateway \u7f51\u5173 \u7f51\u5173\u72b6\u6001<\/td>\n<\/tr>\n<tr>\n<td><code>openclaw gateway install<\/code><\/td>\n<td>\u5b89\u88c5\/\u542f\u52a8 Gateway \u7f51\u5173 \u7f51\u5173\u670d\u52a1<\/td>\n<\/tr>\n<tr>\n<td><code>openclaw gateway stop<\/code><\/td>\n<td>\u505c\u6b62 Gateway \u7f51\u5173 \u7f51\u5173\u670d\u52a1<\/td>\n<\/tr>\n<tr>\n<td><code>openclaw gateway restart<\/code><\/td>\n<td>\u91cd\u542f Gateway \u7f51\u5173 \u7f51\u5173\u670d\u52a1<\/td>\n<\/tr>\n<tr>\n<td><code>openclaw logs --follow<\/code><\/td>\n<td>\u8ddf\u8e2a Gateway \u7f51\u5173 \u7f51\u5173\u65e5\u5fd7<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<hr \/>\n<h2>\u6545\u969c\u6392\u9664<\/h2>\n<h3>\u673a\u5668\u4eba\u5728\u7fa4\u804a\u4e2d\u6ca1\u6709\u54cd\u5e94<\/h3>\n<ol>\n<li>\u8bf7\u786e\u4fdd\u673a\u5668\u4eba\u5df2\u52a0\u5165\u7fa4\u7ec4<\/li>\n<li>\u8bf7\u786e\u4fdd\u4f60 @ \u63d0\u53ca\u4e86\u673a\u5668\u4eba\uff08\u9ed8\u8ba4\u884c\u4e3a\uff09<\/li>\n<li>\u68c0\u67e5 <code>groupPolicy<\/code> \u672a\u8bbe\u7f6e\u4e3a <code>\"disabled\"<\/code><\/li>\n<li>\u68c0\u67e5\u65e5\u5fd7\uff1a<code>openclaw logs --follow<\/code><\/li>\n<\/ol>\n<h3>\u673a\u5668\u4eba\u672a\u63a5\u6536\u5230\u6d88\u606f<\/h3>\n<ol>\n<li>\u8bf7\u786e\u4fdd\u5e94\u7528\u5df2\u53d1\u5e03\u5e76\u83b7\u6279\u51c6<\/li>\n<li>\u8bf7\u786e\u4fdd\u4e8b\u4ef6\u8ba2\u9605\u5305\u542b <code>im.message.receive_v1<\/code><\/li>\n<li>\u8bf7\u786e\u4fdd\u5df2\u542f\u7528<strong>\u957f\u8fde\u63a5<\/strong><\/li>\n<li>\u8bf7\u786e\u4fdd\u5e94\u7528\u6743\u9650\u5b8c\u6574<\/li>\n<li>\u8bf7\u786e\u4fdd Gateway \u7f51\u5173 \u7f51\u5173\u6b63\u5728\u8fd0\u884c\uff1a<code>openclaw gateway status<\/code><\/li>\n<li>\u68c0\u67e5\u65e5\u5fd7\uff1a<code>openclaw logs --follow<\/code><\/li>\n<\/ol>\n<h3>App Secret \u6cc4\u9732<\/h3>\n<ol>\n<li>\u5728\u98de\u4e66\u5f00\u653e\u5e73\u53f0\u4e2d\u91cd\u7f6e App Secret<\/li>\n<li>\u5728\u4f60\u7684\u914d\u7f6e\u4e2d\u66f4\u65b0 App Secret<\/li>\n<li>\u91cd\u542f Gateway \u7f51\u5173 \u7f51\u5173<\/li>\n<\/ol>\n<h3>\u6d88\u606f\u53d1\u9001\u5931\u8d25<\/h3>\n<ol>\n<li>\u8bf7\u786e\u4fdd\u5e94\u7528\u5177\u6709 <code>im:message:send_as_bot<\/code> \u6743\u9650<\/li>\n<li>\u8bf7\u786e\u4fdd\u5e94\u7528\u5df2\u53d1\u5e03<\/li>\n<li>\u67e5\u770b\u65e5\u5fd7\u4ee5\u83b7\u53d6\u8be6\u7ec6\u9519\u8bef\u4fe1\u606f<\/li>\n<\/ol>\n<hr \/>\n<h2>\u9ad8\u7ea7\u914d\u7f6e<\/h2>\n<h3>\u591a\u8d26\u6237<\/h3>\n<p>&#8220;`json5  theme={&#8220;theme&#8221;:{&#8220;light&#8221;:&#8221;min-light&#8221;,&#8221;dark&#8221;:&#8221;min-dark&#8221;}}<br \/>\n{<br \/>\n  \u6e20\u9053s: {<br \/>\n    feishu: {<br \/>\n      defaultAccount: &#8220;main&#8221;,<br \/>\n      accounts: {<br \/>\n        main: {<br \/>\n          appId: &#8220;cli_xxx&#8221;,<br \/>\n          appSecret: &#8220;xxx&#8221;,<br \/>\n          botName: &#8220;Primary bot&#8221;,<br \/>\n        },<br \/>\n        backup: {<br \/>\n          appId: &#8220;cli_yyy&#8221;,<br \/>\n          appSecret: &#8220;yyy&#8221;,<br \/>\n          botName: &#8220;Backup bot&#8221;,<br \/>\n          enabled: false,<br \/>\n        },<br \/>\n      },<br \/>\n    },<br \/>\n  },<br \/>\n}<\/p>\n<pre><code>\n`defaultAccount` \u7528\u4e8e\u63a7\u5236\u5f53\u51fa\u7ad9 API \u672a\u663e\u5f0f\u6307\u5b9a `accountId` \u65f6\uff0c\u4f7f\u7528\u54ea\u4e2a\u98de\u4e66\u8d26\u6237\u3002\n\n### \u6d88\u606f\u9650\u5236\n\n* `textChunkLimit`\uff1a\u51fa\u7ad9\u6587\u672c\u5206\u5757\u5927\u5c0f\uff08\u9ed8\u8ba4\uff1a2000 \u4e2a\u5b57\u7b26\uff09\n* `mediaMaxMb`\uff1a\u5a92\u4f53\u4e0a\u4f20\/\u4e0b\u8f7d\u9650\u5236\uff08\u9ed8\u8ba4\uff1a30 MB\uff09\n\n### \u6d41\u5f0f\u4f20\u8f93\n\n\u98de\u4e66\u901a\u8fc7\u4ea4\u4e92\u5f0f\u5361\u7247\u652f\u6301\u6d41\u5f0f\u56de\u590d\u3002\u542f\u7528\u540e\uff0c\u673a\u5668\u4eba\u4f1a\u5728\u751f\u6210\u6587\u672c\u65f6\u66f4\u65b0\u5361\u7247\u3002\n\n```json5  theme={&quot;theme&quot;:{&quot;light&quot;:&quot;min-light&quot;,&quot;dark&quot;:&quot;min-dark&quot;}}\n{\n  channels: {\n    feishu: {\n      streaming: true, \/\/ \u542f\u7528\u6d41\u5f0f\u5361\u7247\u8f93\u51fa\uff08\u9ed8\u8ba4 true\uff09\n      blockStreaming: true, \/\/ \u542f\u7528\u5206\u5757\u6d41\u5f0f\u4f20\u8f93\uff08\u9ed8\u8ba4 true\uff09\n    },\n  },\n}\n<\/code><\/pre>\n<p>\u5c06 <code>streaming: false<\/code> \u8bbe\u4e3a\u7b49\u5f85\u5b8c\u6574\u56de\u590d\u751f\u6210\u540e\u518d\u53d1\u9001\u3002<\/p>\n<h3>ACP \u4f1a\u8bdd<\/h3>\n<p>\u98de\u4e66\u652f\u6301\u4ee5\u4e0b ACP \u573a\u666f\uff1a<\/p>\n<ul>\n<li>\u79c1\u4fe1<\/li>\n<li>\u7fa4\u7ec4\u8bdd\u9898\u4f1a\u8bdd<\/li>\n<\/ul>\n<p>\u98de\u4e66 ACP \u7531\u6587\u672c\u547d\u4ee4\u9a71\u52a8\u3002\u6ca1\u6709\u539f\u751f\u659c\u6760\u547d\u4ee4\u83dc\u5355\uff0c\u56e0\u6b64\u8bf7\u76f4\u63a5\u5728\u4f1a\u8bdd\u4e2d\u4f7f\u7528 <code>\/acp ...<\/code> \u6d88\u606f\u3002<\/p>\n<h4>\u6301\u4e45\u5316 ACP \u7ed1\u5b9a<\/h4>\n<p>\u4f7f\u7528\u9876\u5c42\u7c7b\u578b\u5316 ACP \u7ed1\u5b9a\uff0c\u5c06\u98de\u4e66\u79c1\u4fe1\u6216\u8bdd\u9898\u4f1a\u8bdd\u56fa\u5b9a\u5230\u6301\u4e45\u5316 ACP \u4f1a\u8bdd\u3002<\/p>\n<p>&#8220;`json5  theme={&#8220;theme&#8221;:{&#8220;light&#8221;:&#8221;min-light&#8221;,&#8221;dark&#8221;:&#8221;min-dark&#8221;}}<br \/>\n{<br \/>\n  agents: {<br \/>\n    list: [<br \/>\n      {<br \/>\n        id: &#8220;codex&#8221;,<br \/>\n        runtime: {<br \/>\n          type: &#8220;acp&#8221;,<br \/>\n          acp: {<br \/>\n            agent: &#8220;codex&#8221;,<br \/>\n            backend: &#8220;acpx&#8221;,<br \/>\n            mode: &#8220;persistent&#8221;,<br \/>\n            cwd: &#8220;\/workspace\/openclaw&#8221;,<br \/>\n          },<br \/>\n        },<br \/>\n      },<br \/>\n    ],<br \/>\n  },<br \/>\n  bindings: [<br \/>\n    {<br \/>\n      type: &#8220;acp&#8221;,<br \/>\n      agentId: &#8220;codex&#8221;,<br \/>\n      match: {<br \/>\n        \u6e20\u9053: &#8220;feishu&#8221;,<br \/>\n        accountId: &#8220;default&#8221;,<br \/>\n        peer: { kind: &#8220;direct&#8221;, id: &#8220;ou_1234567890&#8221; },<br \/>\n      },<br \/>\n    },<br \/>\n    {<br \/>\n      type: &#8220;acp&#8221;,<br \/>\n      agentId: &#8220;codex&#8221;,<br \/>\n      match: {<br \/>\n        \u6e20\u9053: &#8220;feishu&#8221;,<br \/>\n        accountId: &#8220;default&#8221;,<br \/>\n        peer: { kind: &#8220;group&#8221;, id: &#8220;oc_group_chat:topic:om_topic_root&#8221; },<br \/>\n      },<br \/>\n      acp: { label: &#8220;codex-feishu-topic&#8221; },<br \/>\n    },<br \/>\n  ],<br \/>\n}<\/p>\n<pre><code>\n#### \u4ece\u804a\u5929\u4e2d\u6309\u7ebf\u7a0b\u7ed1\u5b9a ACP \u751f\u6210\n\n\u5728\u98de\u4e66\u79c1\u4fe1\u6216\u8bdd\u9898\u4f1a\u8bdd\u4e2d\uff0c\u4f60\u53ef\u4ee5\u5c31\u5730\u751f\u6210\u5e76\u7ed1\u5b9a\u4e00\u4e2a ACP \u4f1a\u8bdd\uff1a\n\n```text  theme={&quot;theme&quot;:{&quot;light&quot;:&quot;min-light&quot;,&quot;dark&quot;:&quot;min-dark&quot;}}\n\/acp spawn codex --thread here\n<\/code><\/pre>\n<p>\u8bf4\u660e\uff1a<\/p>\n<ul>\n<li><code>--thread here<\/code> \u9002\u7528\u4e8e\u79c1\u4fe1\u548c\u98de\u4e66\u8bdd\u9898\u3002<\/li>\n<li>\u7ed1\u5b9a\u540e\u7684\u79c1\u4fe1\/\u8bdd\u9898\u4e2d\u7684\u540e\u7eed\u6d88\u606f\u4f1a\u76f4\u63a5\u8def\u7531\u5230\u8be5 ACP \u4f1a\u8bdd\u3002<\/li>\n<li>v1 \u4e0d\u652f\u6301\u9488\u5bf9\u901a\u7528\u7684\u975e\u8bdd\u9898\u7fa4\u804a\u3002<\/li>\n<\/ul>\n<h3>\u591a\u667a\u80fd\u4f53\u8def\u7531<\/h3>\n<p>\u4f7f\u7528 <code>bindings<\/code> \u5c06\u98de\u4e66\u79c1\u4fe1\u6216\u7fa4\u7ec4\u8def\u7531\u5230\u4e0d\u540c\u7684\u667a\u80fd\u4f53\u3002<\/p>\n<p><code>json5  theme={\"theme\":{\"light\":\"min-light\",\"dark\":\"min-dark\"}}<br \/>\n{<br \/>\n  agents: {<br \/>\n    list: [<br \/>\n      { id: \"main\" },<br \/>\n      {<br \/>\n        id: \"clawd-fan\",<br \/>\n        workspace: \"\/home\/user\/clawd-fan\",<br \/>\n        agentDir: \"\/home\/user\/.openclaw\/agents\/clawd-fan\/agent\",<br \/>\n      },<br \/>\n      {<br \/>\n        id: \"clawd-xi\",<br \/>\n        workspace: \"\/home\/user\/clawd-xi\",<br \/>\n        agentDir: \"\/home\/user\/.openclaw\/agents\/clawd-xi\/agent\",<br \/>\n      },<br \/>\n    ],<br \/>\n  },<br \/>\n  bindings: [<br \/>\n    {<br \/>\n      agentId: \"main\",<br \/>\n      match: {<br \/>\n        channel: \"feishu\",<br \/>\n        peer: { kind: \"direct\", id: \"ou_xxx\" },<br \/>\n      },<br \/>\n    },<br \/>\n    {<br \/>\n      agentId: \"clawd-fan\",<br \/>\n      match: {<br \/>\n        channel: \"feishu\",<br \/>\n        peer: { kind: \"direct\", id: \"ou_yyy\" },<br \/>\n      },<br \/>\n    },<br \/>\n    {<br \/>\n      agentId: \"clawd-xi\",<br \/>\n      match: {<br \/>\n        channel: \"feishu\",<br \/>\n        peer: { kind: \"group\", id: \"oc_zzz\" },<br \/>\n      },<br \/>\n    },<br \/>\n  ],<br \/>\n}<\/code><\/p>\n<p>\u8def\u7531\u5b57\u6bb5\uff1a<\/p>\n<ul>\n<li><code>match.channel<\/code>\uff1a<code>\"feishu\"<\/code><\/li>\n<li><code>match.peer.kind<\/code>\uff1a<code>\"direct\"<\/code> \u6216 <code>\"group\"<\/code><\/li>\n<li><code>match.peer.id<\/code>\uff1a\u7528\u6237 Open ID\uff08<code>ou_xxx<\/code>\uff09\u6216\u7fa4\u7ec4 ID\uff08<code>oc_xxx<\/code>\uff09<\/li>\n<\/ul>\n<p>\u67e5\u627e\u63d0\u793a\u8bf7\u53c2\u89c1 <a href=\"#get-groupuser-ids\">\u83b7\u53d6\u7fa4\u7ec4\/\u7528\u6237 ID<\/a>\u3002<\/p>\n<hr \/>\n<h2>\u914d\u7f6e\u53c2\u8003<\/h2>\n<p>\u5b8c\u6574\u914d\u7f6e\uff1a<a href=\"https:\/\/pa.yingzhi8.cn\/?p=120\">Gateway \u7f51\u5173 \u7f51\u5173\u914d\u7f6e<\/a><\/p>\n<p>\u5173\u952e\u9009\u9879\uff1a<\/p>\n<table>\n<thead>\n<tr>\n<th>Setting<\/th>\n<th>Description<\/th>\n<th>Default<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><code>channels.feishu.enabled<\/code><\/td>\n<td>\u542f\u7528\/\u7981\u7528\u6e20\u9053<\/td>\n<td><code>true<\/code><\/td>\n<\/tr>\n<tr>\n<td><code>channels.feishu.domain<\/code><\/td>\n<td>API \u57df\u540d\uff08<code>feishu<\/code> \u6216 <code>lark<\/code>\uff09<\/td>\n<td><code>feishu<\/code><\/td>\n<\/tr>\n<tr>\n<td><code>channels.feishu.connectionMode<\/code><\/td>\n<td>\u4e8b\u4ef6\u4f20\u8f93\u6a21\u5f0f<\/td>\n<td><code>websocket<\/code><\/td>\n<\/tr>\n<tr>\n<td><code>channels.feishu.defaultAccount<\/code><\/td>\n<td>\u51fa\u7ad9\u8def\u7531\u7684\u9ed8\u8ba4\u8d26\u6237 ID<\/td>\n<td><code>default<\/code><\/td>\n<\/tr>\n<tr>\n<td><code>channels.feishu.verificationToken<\/code><\/td>\n<td>webhook \u6a21\u5f0f\u5fc5\u586b<\/td>\n<td>&#8211;<\/td>\n<\/tr>\n<tr>\n<td><code>channels.feishu.encryptKey<\/code><\/td>\n<td>webhook \u6a21\u5f0f\u5fc5\u586b<\/td>\n<td>&#8211;<\/td>\n<\/tr>\n<tr>\n<td><code>channels.feishu.webhookPath<\/code><\/td>\n<td>webhook \u8def\u7531\u8def\u5f84<\/td>\n<td><code>\/feishu\/events<\/code><\/td>\n<\/tr>\n<tr>\n<td><code>channels.feishu.webhookHost<\/code><\/td>\n<td>webhook \u7ed1\u5b9a\u4e3b\u673a<\/td>\n<td><code>127.0.0.1<\/code><\/td>\n<\/tr>\n<tr>\n<td><code>channels.feishu.webhookPort<\/code><\/td>\n<td>webhook \u7ed1\u5b9a\u7aef\u53e3<\/td>\n<td><code>3000<\/code><\/td>\n<\/tr>\n<tr>\n<td><code>channels.feishu.accounts.&lt;id&gt;.appId<\/code><\/td>\n<td>App ID<\/td>\n<td>&#8211;<\/td>\n<\/tr>\n<tr>\n<td><code>channels.feishu.accounts.&lt;id&gt;.appSecret<\/code><\/td>\n<td>App Secret<\/td>\n<td>&#8211;<\/td>\n<\/tr>\n<tr>\n<td><code>channels.feishu.accounts.&lt;id&gt;.domain<\/code><\/td>\n<td>\u6309\u8d26\u6237\u8986\u76d6 API \u57df\u540d<\/td>\n<td><code>feishu<\/code><\/td>\n<\/tr>\n<tr>\n<td><code>channels.feishu.dmPolicy<\/code><\/td>\n<td>\u79c1\u4fe1\u7b56\u7565<\/td>\n<td><code>pairing<\/code><\/td>\n<\/tr>\n<tr>\n<td><code>channels.feishu.allowFrom<\/code><\/td>\n<td>\u79c1\u4fe1 allowlist\uff08<code>open_id<\/code> \u5217\u8868\uff09<\/td>\n<td>&#8211;<\/td>\n<\/tr>\n<tr>\n<td><code>channels.feishu.groupPolicy<\/code><\/td>\n<td>\u7fa4\u7ec4\u7b56\u7565<\/td>\n<td><code>open<\/code><\/td>\n<\/tr>\n<tr>\n<td><code>channels.feishu.groupAllowFrom<\/code><\/td>\n<td>\u7fa4\u7ec4 allowlist<\/td>\n<td>&#8211;<\/td>\n<\/tr>\n<tr>\n<td><code>channels.feishu.groups.&lt;chat_id&gt;.requireMention<\/code><\/td>\n<td>\u8981\u6c42 @ \u63d0\u53ca<\/td>\n<td><code>true<\/code><\/td>\n<\/tr>\n<tr>\n<td><code>channels.feishu.groups.&lt;chat_id&gt;.enabled<\/code><\/td>\n<td>\u542f\u7528\u7fa4\u7ec4<\/td>\n<td><code>true<\/code><\/td>\n<\/tr>\n<tr>\n<td><code>channels.feishu.textChunkLimit<\/code><\/td>\n<td>\u6d88\u606f\u5206\u5757\u5927\u5c0f<\/td>\n<td><code>2000<\/code><\/td>\n<\/tr>\n<tr>\n<td><code>channels.feishu.mediaMaxMb<\/code><\/td>\n<td>\u5a92\u4f53\u5927\u5c0f\u9650\u5236<\/td>\n<td><code>30<\/code><\/td>\n<\/tr>\n<tr>\n<td><code>channels.feishu.streaming<\/code><\/td>\n<td>\u542f\u7528\u6d41\u5f0f\u5361\u7247\u8f93\u51fa<\/td>\n<td><code>true<\/code><\/td>\n<\/tr>\n<tr>\n<td><code>channels.feishu.blockStreaming<\/code><\/td>\n<td>\u542f\u7528\u5206\u5757\u6d41\u5f0f\u4f20\u8f93<\/td>\n<td><code>true<\/code><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<hr \/>\n<h2>dmPolicy \u53c2\u8003<\/h2>\n<table>\n<thead>\n<tr>\n<th>Value<\/th>\n<th>Behavior<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><code>\"pairing\"<\/code><\/td>\n<td>**\u9ed8\u8ba4\u3002**\u672a\u77e5\u7528\u6237\u4f1a\u6536\u5230\u914d\u5bf9\u7801\uff1b\u5fc5\u987b\u83b7\u6279\u51c6\u540e\u624d\u80fd\u4f7f\u7528<\/td>\n<\/tr>\n<tr>\n<td><code>\"allowlist\"<\/code><\/td>\n<td>\u53ea\u6709 <code>allowFrom<\/code> \u4e2d\u7684\u7528\u6237\u53ef\u4ee5\u804a\u5929<\/td>\n<\/tr>\n<tr>\n<td><code>\"open\"<\/code><\/td>\n<td>\u5141\u8bb8\u6240\u6709\u7528\u6237\uff08\u8981\u6c42 <code>allowFrom<\/code> \u4e2d\u6709 <code>\"*\"<\/code>\uff09<\/td>\n<\/tr>\n<tr>\n<td><code>\"disabled\"<\/code><\/td>\n<td>\u7981\u7528\u79c1\u4fe1<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<hr \/>\n<h2>\u652f\u6301\u7684\u6d88\u606f\u7c7b\u578b<\/h2>\n<h3>\u63a5\u6536<\/h3>\n<ul>\n<li>\u2705 \u6587\u672c<\/li>\n<li>\u2705 \u5bcc\u6587\u672c\uff08post\uff09<\/li>\n<li>\u2705 \u56fe\u7247<\/li>\n<li>\u2705 \u6587\u4ef6<\/li>\n<li>\u2705 \u97f3\u9891<\/li>\n<li>\u2705 \u89c6\u9891<\/li>\n<li>\u2705 \u8d34\u7eb8<\/li>\n<\/ul>\n<h3>\u53d1\u9001<\/h3>\n<ul>\n<li>\u2705 \u6587\u672c<\/li>\n<li>\u2705 \u56fe\u7247<\/li>\n<li>\u2705 \u6587\u4ef6<\/li>\n<li>\u2705 \u97f3\u9891<\/li>\n<li>\u26a0\ufe0f \u5bcc\u6587\u672c\uff08\u90e8\u5206\u652f\u6301\uff09<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u98de\u4e66 \u98de\u4e66\u673a\u5668\u4eba \u98de\u4e66\uff08Lark\uff09\u662f\u4f01\u4e1a\u7528\u4e8e\u6d88\u606f\u6c9f\u901a\u4e0e\u534f\u4f5c\u7684\u56e2\u961f\u804a\u5929\u5e73\u53f0\u3002\u6b64\u63d2\u4ef6\u901a\u8fc7\u5e73\u53f0\u7684 WebSocket [&hellip;]<\/p>\n","protected":false},"author":0,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-20","post","type-post","status-publish","format-standard","hentry","category-docs"],"_links":{"self":[{"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/posts\/20","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"replies":[{"embeddable":true,"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/comments?post=20"}],"version-history":[{"count":2,"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/posts\/20\/revisions"}],"predecessor-version":[{"id":865,"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/posts\/20\/revisions\/865"}],"wp:attachment":[{"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/media?parent=20"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/categories?post=20"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/tags?post=20"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}