{"id":36,"date":"2026-03-21T22:47:14","date_gmt":"2026-03-21T14:47:14","guid":{"rendered":"https:\/\/pa.yingzhi8.cn\/index.php\/2026\/03\/21\/channels-synology-chat\/"},"modified":"2026-03-21T23:29:15","modified_gmt":"2026-03-21T15:29:15","slug":"channels-synology-chat","status":"publish","type":"post","link":"https:\/\/pa.yingzhi8.cn\/index.php\/2026\/03\/21\/channels-synology-chat\/","title":{"rendered":"Synology Chat"},"content":{"rendered":"<h1>Synology Chat<\/h1>\n<h1>Synology Chat\uff08\u63d2\u4ef6\uff09<\/h1>\n<p>\u72b6\u6001\uff1a\u901a\u8fc7\u63d2\u4ef6\u652f\u6301\uff0c\u4f5c\u4e3a\u4f7f\u7528 Synology Chat webhook \u7684\u79c1\u4fe1\u6e20\u9053\u3002<br \/>\n\u8be5\u63d2\u4ef6\u63a5\u53d7\u6765\u81ea Synology Chat \u51fa\u7ad9 webhook \u7684\u5165\u7ad9\u6d88\u606f\uff0c\u5e76\u901a\u8fc7 Synology Chat \u5165\u7ad9 webhook \u53d1\u9001\u56de\u590d\u3002<\/p>\n<h2>\u9700\u8981\u63d2\u4ef6<\/h2>\n<p>Synology Chat \u57fa\u4e8e\u63d2\u4ef6\uff0c\u4e0d\u5c5e\u4e8e\u9ed8\u8ba4\u7684\u6838\u5fc3\u6e20\u9053\u5b89\u88c5\u5185\u5bb9\u3002<\/p>\n<p>\u4ece\u672c\u5730\u68c0\u51fa\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 .\/extensions\/synology-chat<\/p>\n<pre><code>\n\u8be6\u60c5\uff1a[\u63d2\u4ef6](\/tools\/plugin)\n\n## \u5feb\u901f\u8bbe\u7f6e\n\n1. \u5b89\u88c5\u5e76\u542f\u7528 Synology Chat \u63d2\u4ef6\u3002\n   * `openclaw onboard` \u73b0\u5728\u4f1a\u5728\u4e0e `openclaw channels add` \u76f8\u540c\u7684\u6e20\u9053\u8bbe\u7f6e\u5217\u8868\u4e2d\u663e\u793a Synology Chat\u3002\n   * \u975e\u4ea4\u4e92\u5f0f\u8bbe\u7f6e\uff1a`openclaw channels add --channel synology-chat --token &lt;token&gt; --url &lt;incoming-webhook-url&gt;`\n2. \u5728 Synology Chat \u96c6\u6210\u4e2d\uff1a\n   * \u521b\u5efa\u4e00\u4e2a\u5165\u7ad9 webhook \u5e76\u590d\u5236\u5176 URL\u3002\n   * \u4f7f\u7528\u4f60\u7684 secret token \u521b\u5efa\u4e00\u4e2a\u51fa\u7ad9 webhook\u3002\n3. \u5c06\u51fa\u7ad9 webhook URL \u6307\u5411\u4f60\u7684 OpenClaw Gateway \u7f51\u5173\uff1a\n   * \u9ed8\u8ba4\u662f `https:\/\/gateway-host\/webhook\/synology`\u3002\n   * \u6216\u8005\u4f7f\u7528\u4f60\u81ea\u5b9a\u4e49\u7684 `channels.synology-chat.webhookPath`\u3002\n4. \u5728 OpenClaw \u4e2d\u5b8c\u6210\u8bbe\u7f6e\u3002\n   * \u5f15\u5bfc\u5f0f\uff1a`openclaw onboard`\n   * \u76f4\u63a5\u8bbe\u7f6e\uff1a`openclaw channels add --channel synology-chat --token &lt;token&gt; --url &lt;incoming-webhook-url&gt;`\n5. \u91cd\u542f Gateway \u7f51\u5173\uff0c\u5e76\u5411 Synology Chat \u673a\u5668\u4eba\u53d1\u9001\u4e00\u6761\u79c1\u4fe1\u3002\n\n\u6700\u5c0f\u914d\u7f6e\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    &quot;synology-chat&quot;: {\n      enabled: true,\n      token: &quot;synology-outgoing-token&quot;,\n      incomingUrl: &quot;https:\/\/nas.example.com\/webapi\/entry.cgi?api=SYNO.Chat.External&amp;method=incoming&amp;version=2&amp;token=...&quot;,\n      webhookPath: &quot;\/webhook\/synology&quot;,\n      dmPolicy: &quot;allowlist&quot;,\n      allowedUserIds: [&quot;123456&quot;],\n      rateLimitPerMinute: 30,\n      allowInsecureSsl: false,\n    },\n  },\n}\n<\/code><\/pre>\n<h2>\u73af\u5883\u53d8\u91cf<\/h2>\n<p>\u5bf9\u4e8e\u9ed8\u8ba4\u8d26\u6237\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528\u73af\u5883\u53d8\u91cf\uff1a<\/p>\n<ul>\n<li><code>SYNOLOGY_CHAT_TOKEN<\/code><\/li>\n<li><code>SYNOLOGY_CHAT_INCOMING_URL<\/code><\/li>\n<li><code>SYNOLOGY_NAS_HOST<\/code><\/li>\n<li><code>SYNOLOGY_ALLOWED_USER_IDS<\/code>\uff08\u9017\u53f7\u5206\u9694\uff09<\/li>\n<li><code>SYNOLOGY_RATE_LIMIT<\/code><\/li>\n<li><code>OPENCLAW_BOT_NAME<\/code><\/li>\n<\/ul>\n<p>\u914d\u7f6e\u503c\u4f1a\u8986\u76d6\u73af\u5883\u53d8\u91cf\u3002<\/p>\n<h2>\u79c1\u4fe1\u7b56\u7565\u4e0e\u8bbf\u95ee\u63a7\u5236<\/h2>\n<ul>\n<li>\u63a8\u8350\u7684\u9ed8\u8ba4\u503c\u662f <code>dmPolicy: \"allowlist\"<\/code>\u3002<\/li>\n<li><code>allowedUserIds<\/code> \u63a5\u53d7 Synology \u7528\u6237 ID \u5217\u8868\uff08\u6216\u9017\u53f7\u5206\u9694\u5b57\u7b26\u4e32\uff09\u3002<\/li>\n<li>\u5728 <code>allowlist<\/code> \u6a21\u5f0f\u4e0b\uff0c\u7a7a\u7684 <code>allowedUserIds<\/code> \u5217\u8868\u4f1a\u88ab\u89c6\u4e3a\u914d\u7f6e\u9519\u8bef\uff0cwebhook \u8def\u7531\u5c06\u4e0d\u4f1a\u542f\u52a8\uff08\u5982\u9700\u5141\u8bb8\u6240\u6709\u4eba\uff0c\u8bf7\u4f7f\u7528 <code>dmPolicy: \"open\"<\/code>\uff09\u3002<\/li>\n<li><code>dmPolicy: \"open\"<\/code> \u5141\u8bb8\u4efb\u4f55\u53d1\u9001\u65b9\u3002<\/li>\n<li><code>dmPolicy: \"disabled\"<\/code> \u4f1a\u963b\u6b62\u79c1\u4fe1\u3002<\/li>\n<li>\u914d\u5bf9\u6279\u51c6\u53ef\u914d\u5408\u4ee5\u4e0b\u547d\u4ee4\u4f7f\u7528\uff1a<\/li>\n<li><code>openclaw pairing list synology-chat<\/code><\/li>\n<li><code>openclaw pairing approve synology-chat &lt;CODE&gt;<\/code><\/li>\n<\/ul>\n<h2>\u51fa\u7ad9\u6295\u9012<\/h2>\n<p>\u4f7f\u7528\u6570\u5b57\u5f62\u5f0f\u7684 Synology Chat \u7528\u6237 ID \u4f5c\u4e3a\u76ee\u6807\u3002<\/p>\n<p>\u793a\u4f8b\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 message send &#8211;\u6e20\u9053 synology-chat &#8211;target 123456 &#8211;text &#8220;Hello from OpenClaw&#8221;<br \/>\nopenclaw message send &#8211;\u6e20\u9053 synology-chat &#8211;target synology-chat:123456 &#8211;text &#8220;Hello again&#8221;<\/p>\n<pre><code>\n\u652f\u6301\u901a\u8fc7\u57fa\u4e8e URL \u7684\u6587\u4ef6\u6295\u9012\u53d1\u9001\u5a92\u4f53\u3002\n\n## \u591a\u8d26\u6237\n\n\u652f\u6301\u5728 `channels.synology-chat.accounts` \u4e0b\u914d\u7f6e\u591a\u4e2a Synology Chat \u8d26\u6237\u3002\n\u6bcf\u4e2a\u8d26\u6237\u90fd\u53ef\u4ee5\u8986\u76d6 token\u3001\u5165\u7ad9 URL\u3001webhook \u8def\u5f84\u3001\u79c1\u4fe1\u7b56\u7565\u548c\u9650\u5236\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    &quot;synology-chat&quot;: {\n      enabled: true,\n      accounts: {\n        default: {\n          token: &quot;token-a&quot;,\n          incomingUrl: &quot;https:\/\/nas-a.example.com\/...token=...&quot;,\n        },\n        alerts: {\n          token: &quot;token-b&quot;,\n          incomingUrl: &quot;https:\/\/nas-b.example.com\/...token=...&quot;,\n          webhookPath: &quot;\/webhook\/synology-alerts&quot;,\n          dmPolicy: &quot;allowlist&quot;,\n          allowedUserIds: [&quot;987654&quot;],\n        },\n      },\n    },\n  },\n}\n<\/code><\/pre>\n<h2>\u5b89\u5168\u8bf4\u660e<\/h2>\n<ul>\n<li>\u59a5\u5584\u4fdd\u7ba1 <code>token<\/code>\uff0c\u5982\u679c\u6cc4\u9732\u8bf7\u8f6e\u6362\u3002<\/li>\n<li>\u9664\u975e\u4f60\u660e\u786e\u53ef\u4fe1\u4efb\u672c\u5730 NAS \u7684\u81ea\u7b7e\u540d\u8bc1\u4e66\uff0c\u5426\u5219\u8bf7\u4fdd\u6301 <code>allowInsecureSsl: false<\/code>\u3002<\/li>\n<li>\u5165\u7ad9 webhook \u8bf7\u6c42\u4f1a\u6309 token \u9a8c\u8bc1\uff0c\u5e76\u6309\u53d1\u9001\u65b9\u8fdb\u884c\u901f\u7387\u9650\u5236\u3002<\/li>\n<li>\u751f\u4ea7\u73af\u5883\u4f18\u5148\u4f7f\u7528 <code>dmPolicy: \"allowlist\"<\/code>\u3002<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Synology Chat Synology Chat\uff08\u63d2\u4ef6\uff09 \u72b6\u6001\uff1a\u901a\u8fc7\u63d2\u4ef6\u652f\u6301\uff0c\u4f5c\u4e3a\u4f7f\u7528 Synology [&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-36","post","type-post","status-publish","format-standard","hentry","category-docs"],"_links":{"self":[{"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/posts\/36","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=36"}],"version-history":[{"count":2,"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/posts\/36\/revisions"}],"predecessor-version":[{"id":854,"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/posts\/36\/revisions\/854"}],"wp:attachment":[{"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/media?parent=36"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/categories?post=36"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/tags?post=36"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}