{"id":43,"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-zalouser\/"},"modified":"2026-03-21T23:29:18","modified_gmt":"2026-03-21T15:29:18","slug":"channels-zalouser","status":"publish","type":"post","link":"https:\/\/pa.yingzhi8.cn\/index.php\/2026\/03\/21\/channels-zalouser\/","title":{"rendered":"Zalo Personal"},"content":{"rendered":"<h1>Zalo Personal<\/h1>\n<h1>Zalo Personal\uff08\u975e\u5b98\u65b9\uff09<\/h1>\n<p>\u72b6\u6001\uff1a\u5b9e\u9a8c\u6027\u3002\u6b64\u96c6\u6210\u901a\u8fc7 <code>zca-cli<\/code> \u81ea\u52a8\u5316<strong>\u4e2a\u4eba Zalo \u8d26\u6237<\/strong>\u3002<\/p>\n<blockquote>\n<p>**\u8b66\u544a\uff1a**\u8fd9\u662f\u4e00\u4e2a\u975e\u5b98\u65b9\u96c6\u6210\uff0c\u53ef\u80fd\u5bfc\u81f4\u8d26\u6237\u88ab\u6682\u505c\/\u5c01\u7981\u3002\u4f7f\u7528\u98ce\u9669\u81ea\u8d1f\u3002<\/p>\n<\/blockquote>\n<h2>\u9700\u8981\u63d2\u4ef6<\/h2>\n<p>Zalo Personal \u4f5c\u4e3a\u63d2\u4ef6\u63d0\u4f9b\uff0c\u4e0d\u5305\u542b\u5728\u6838\u5fc3\u5b89\u88c5\u4e2d\u3002<\/p>\n<ul>\n<li>\u901a\u8fc7 CLI \u5b89\u88c5\uff1a<code>openclaw plugins install @openclaw\/zalouser<\/code><\/li>\n<li>\u6216\u4ece\u6e90\u7801\u68c0\u51fa\u5b89\u88c5\uff1a<code>openclaw plugins install .\/extensions\/zalouser<\/code><\/li>\n<li>\u8be6\u60c5\uff1a<a href=\"https:\/\/pa.yingzhi8.cn\/?p=289\">\u63d2\u4ef6<\/a><\/li>\n<\/ul>\n<h2>\u524d\u7f6e\u6761\u4ef6\uff1azca-cli<\/h2>\n<p>Gateway \u7f51\u5173 \u7f51\u5173\u673a\u5668\u5fc5\u987b\u5728 <code>PATH<\/code> \u4e2d\u6709\u53ef\u7528\u7684 <code>zca<\/code> \u4e8c\u8fdb\u5236\u6587\u4ef6\u3002<\/p>\n<ul>\n<li>\u9a8c\u8bc1\uff1a<code>zca --version<\/code><\/li>\n<li>\u5982\u679c\u7f3a\u5931\uff0c\u8bf7\u5b89\u88c5 zca-cli\uff08\u53c2\u89c1 <code>extensions\/zalouser\/README.md<\/code> \u6216\u4e0a\u6e38 zca-cli \u6587\u6863\uff09\u3002<\/li>\n<\/ul>\n<h2>\u5feb\u901f\u8bbe\u7f6e\uff08\u65b0\u624b\uff09<\/h2>\n<ol>\n<li>\u5b89\u88c5\u63d2\u4ef6\uff08\u89c1\u4e0a\u6587\uff09\u3002<\/li>\n<li>\u767b\u5f55\uff08QR\uff0c\u5728 Gateway \u7f51\u5173 \u7f51\u5173\u673a\u5668\u4e0a\uff09\uff1a<br \/>\n   * <code>openclaw channels login --channel zalouser<\/code><br \/>\n   * \u7528 Zalo \u624b\u673a\u5e94\u7528\u626b\u63cf\u7ec8\u7aef\u4e2d\u7684\u4e8c\u7ef4\u7801\u3002<\/li>\n<li>\u542f\u7528\u6e20\u9053\uff1a<\/li>\n<\/ol>\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    zalouser: {<br \/>\n      enabled: true,<br \/>\n      dmPolicy: &#8220;pairing&#8221;,<br \/>\n    },<br \/>\n  },<br \/>\n}<\/p>\n<pre><code>\n4. \u91cd\u542f Gateway \u7f51\u5173\uff08\u6216\u5b8c\u6210\u65b0\u624b\u5f15\u5bfc\uff09\u3002\n5. \u79c1\u4fe1\u8bbf\u95ee\u9ed8\u8ba4\u4e3a\u914d\u5bf9\u6a21\u5f0f\uff1b\u9996\u6b21\u8054\u7cfb\u65f6\u6279\u51c6\u914d\u5bf9\u7801\u3002\n\n## \u8fd9\u662f\u4ec0\u4e48\n\n* \u4f7f\u7528 `zca listen` \u63a5\u6536\u5165\u7ad9\u6d88\u606f\u3002\n* \u4f7f\u7528 `zca msg ...` \u53d1\u9001\u56de\u590d\uff08\u6587\u672c\/\u5a92\u4f53\/\u94fe\u63a5\uff09\u3002\n* \u4e13\u4e3a&quot;\u4e2a\u4eba\u8d26\u6237&quot;\u4f7f\u7528\u573a\u666f\u8bbe\u8ba1\uff0c\u9002\u7528\u4e8e Zalo Bot API \u4e0d\u53ef\u7528\u7684\u60c5\u51b5\u3002\n\n## \u547d\u540d\n\n\u6e20\u9053 ID \u4e3a `zalouser`\uff0c\u4ee5\u660e\u786e\u8868\u793a\u8fd9\u662f\u81ea\u52a8\u5316**\u4e2a\u4eba Zalo \u7528\u6237\u8d26\u6237**\uff08\u975e\u5b98\u65b9\uff09\u3002\u6211\u4eec\u4fdd\u7559 `zalo` \u7528\u4e8e\u672a\u6765\u53ef\u80fd\u7684\u5b98\u65b9 Zalo API \u96c6\u6210\u3002\n\n## \u67e5\u627e ID\uff08\u76ee\u5f55\uff09\n\n\u4f7f\u7528\u76ee\u5f55 CLI \u53d1\u73b0\u8054\u7cfb\u4eba\/\u7fa4\u7ec4\u53ca\u5176 ID\uff1a\n\n```bash  theme={&quot;theme&quot;:{&quot;light&quot;:&quot;min-light&quot;,&quot;dark&quot;:&quot;min-dark&quot;}}\nopenclaw directory self --channel zalouser\nopenclaw directory peers list --channel zalouser --query &quot;name&quot;\nopenclaw directory groups list --channel zalouser --query &quot;work&quot;\n<\/code><\/pre>\n<h2>\u9650\u5236<\/h2>\n<ul>\n<li>\u51fa\u7ad9\u6587\u672c\u5206\u5757\u4e3a\u7ea6 2000 \u5b57\u7b26\uff08Zalo \u5ba2\u6237\u7aef\u9650\u5236\uff09\u3002<\/li>\n<li>\u9ed8\u8ba4\u963b\u6b62\u6d41\u5f0f\u4f20\u8f93\u3002<\/li>\n<\/ul>\n<h2>\u8bbf\u95ee\u63a7\u5236\uff08\u79c1\u4fe1\uff09<\/h2>\n<p><code>channels.zalouser.dmPolicy<\/code> \u652f\u6301\uff1a<code>pairing | allowlist | open | disabled<\/code>\uff08\u9ed8\u8ba4\uff1a<code>pairing<\/code>\uff09\u3002<br \/>\n<code>channels.zalouser.allowFrom<\/code> \u63a5\u53d7\u7528\u6237 ID \u6216\u540d\u79f0\u3002\u5411\u5bfc\u4f1a\u5728\u53ef\u7528\u65f6\u901a\u8fc7 <code>zca friend find<\/code> \u5c06\u540d\u79f0\u89e3\u6790\u4e3a ID\u3002<\/p>\n<p>\u901a\u8fc7\u4ee5\u4e0b\u65b9\u5f0f\u6279\u51c6\uff1a<\/p>\n<ul>\n<li><code>openclaw pairing list zalouser<\/code><\/li>\n<li><code>openclaw pairing approve zalouser &lt;code&gt;<\/code><\/li>\n<\/ul>\n<h2>\u7fa4\u7ec4\u8bbf\u95ee\uff08\u53ef\u9009\uff09<\/h2>\n<ul>\n<li>\u9ed8\u8ba4\uff1a<code>channels.zalouser.groupPolicy = \"open\"<\/code>\uff08\u5141\u8bb8\u7fa4\u7ec4\uff09\u3002\u4f7f\u7528 <code>channels.defaults.groupPolicy<\/code> \u5728\u672a\u8bbe\u7f6e\u65f6\u8986\u76d6\u9ed8\u8ba4\u503c\u3002<\/li>\n<li>\u901a\u8fc7\u4ee5\u4e0b\u65b9\u5f0f\u9650\u5236\u4e3a\u5141\u8bb8\u5217\u8868\uff1a<\/li>\n<li><code>channels.zalouser.groupPolicy = \"allowlist\"<\/code><\/li>\n<li><code>channels.zalouser.groups<\/code>\uff08\u952e\u4e3a\u7fa4\u7ec4 ID \u6216\u540d\u79f0\uff09<\/li>\n<li>\u963b\u6b62\u6240\u6709\u7fa4\u7ec4\uff1a<code>channels.zalouser.groupPolicy = \"disabled\"<\/code>\u3002<\/li>\n<li>\u914d\u7f6e\u5411\u5bfc\u53ef\u4ee5\u63d0\u793a\u8f93\u5165\u7fa4\u7ec4\u5141\u8bb8\u5217\u8868\u3002<\/li>\n<li>\u542f\u52a8\u65f6\uff0cOpenClaw \u5c06\u5141\u8bb8\u5217\u8868\u4e2d\u7684\u7fa4\u7ec4\/\u7528\u6237\u540d\u79f0\u89e3\u6790\u4e3a ID \u5e76\u8bb0\u5f55\u6620\u5c04\uff1b\u672a\u89e3\u6790\u7684\u6761\u76ee\u4fdd\u6301\u539f\u6837\u3002<\/li>\n<\/ul>\n<p>\u793a\u4f8b\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    zalouser: {<br \/>\n      groupPolicy: &#8220;allowlist&#8221;,<br \/>\n      groups: {<br \/>\n        &#8220;123456789&#8221;: { allow: true },<br \/>\n        &#8220;Work Chat&#8221;: { allow: true },<br \/>\n      },<br \/>\n    },<br \/>\n  },<br \/>\n}<\/p>\n<pre><code>\n## \u591a\u8d26\u6237\n\n\u8d26\u6237\u6620\u5c04\u5230 zca \u914d\u7f6e\u6587\u4ef6\u3002\u793a\u4f8b\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    zalouser: {\n      enabled: true,\n      defaultAccount: &quot;default&quot;,\n      accounts: {\n        work: { enabled: true, profile: &quot;work&quot; },\n      },\n    },\n  },\n}\n<\/code><\/pre>\n<h2>\u6545\u969c\u6392\u9664<\/h2>\n<p><strong>\u627e\u4e0d\u5230 <code>zca<\/code>\uff1a<\/strong><\/p>\n<ul>\n<li>\u5b89\u88c5 zca-cli \u5e76\u8bf7\u786e\u4fdd\u5b83\u5728 Gateway \u7f51\u5173 \u7f51\u5173\u8fdb\u7a0b\u7684 <code>PATH<\/code> \u4e2d\u3002<\/li>\n<\/ul>\n<p><strong>\u767b\u5f55\u4e0d\u4fdd\u6301\uff1a<\/strong><\/p>\n<ul>\n<li><code>openclaw channels status --probe<\/code><\/li>\n<li>\u91cd\u65b0\u767b\u5f55\uff1a<code>openclaw channels logout --channel zalouser &amp;&amp; openclaw channels login --channel zalouser<\/code><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Zalo Personal Zalo Personal\uff08\u975e\u5b98\u65b9\uff09 \u72b6\u6001\uff1a\u5b9e\u9a8c\u6027\u3002\u6b64\u96c6\u6210\u901a\u8fc7 zca-cli \u81ea [&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-43","post","type-post","status-publish","format-standard","hentry","category-docs"],"_links":{"self":[{"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/posts\/43","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=43"}],"version-history":[{"count":2,"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/posts\/43\/revisions"}],"predecessor-version":[{"id":861,"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/posts\/43\/revisions\/861"}],"wp:attachment":[{"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/media?parent=43"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/categories?post=43"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/tags?post=43"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}