{"id":41,"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-whatsapp\/"},"modified":"2026-03-21T23:29:17","modified_gmt":"2026-03-21T15:29:17","slug":"channels-whatsapp","status":"publish","type":"post","link":"https:\/\/pa.yingzhi8.cn\/index.php\/2026\/03\/21\/channels-whatsapp\/","title":{"rendered":"WhatsApp"},"content":{"rendered":"<h1>WhatsApp<\/h1>\n<h1>WhatsApp\uff08\u7f51\u9875\u6e20\u9053\uff09<\/h1>\n<p>\u72b6\u6001\uff1a\u4ec5\u652f\u6301\u901a\u8fc7 Baileys \u7684 WhatsApp Web\u3002Gateway \u7f51\u5173 \u7f51\u5173\u62e5\u6709\u4f1a\u8bdd\u3002<\/p>\n<h2>\u5feb\u901f\u8bbe\u7f6e\uff08\u65b0\u624b\uff09<\/h2>\n<ol>\n<li>\u5982\u679c\u53ef\u80fd\uff0c\u4f7f\u7528<strong>\u5355\u72ec\u7684\u624b\u673a\u53f7\u7801<\/strong>\uff08\u63a8\u8350\uff09\u3002<\/li>\n<li>\u5728 <code>~\/.openclaw\/openclaw.json<\/code> \u4e2d\u914d\u7f6e WhatsApp\u3002<\/li>\n<li>\u8fd0\u884c <code>openclaw channels login<\/code> \u626b\u63cf\u4e8c\u7ef4\u7801\uff08\u5173\u8054\u8bbe\u5907\uff09\u3002<\/li>\n<li>\u542f\u52a8 Gateway \u7f51\u5173 \u7f51\u5173\u3002<\/li>\n<\/ol>\n<p>\u6700\u5c0f\u914d\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    whatsapp: {<br \/>\n      dmPolicy: &#8220;allowlist&#8221;,<br \/>\n      allowFrom: [&#8220;+15551234567&#8221;],<br \/>\n    },<br \/>\n  },<br \/>\n}<\/p>\n<pre><code>\n## \u76ee\u6807\n\n* \u5728\u4e00\u4e2a Gateway \u7f51\u5173\u8fdb\u7a0b\u4e2d\u652f\u6301\u591a\u4e2a WhatsApp \u8d26\u6237\uff08\u591a\u8d26\u6237\uff09\u3002\n* \u786e\u5b9a\u6027\u8def\u7531\uff1a\u56de\u590d\u8fd4\u56de\u5230 WhatsApp\uff0c\u65e0\u6a21\u578b\u8def\u7531\u3002\n* \u6a21\u578b\u80fd\u770b\u5230\u8db3\u591f\u7684\u4e0a\u4e0b\u6587\u6765\u7406\u89e3\u5f15\u7528\u56de\u590d\u3002\n\n## \u914d\u7f6e\u5199\u5165\n\n\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0cWhatsApp \u5141\u8bb8\u5199\u5165\u7531 `\/config set|unset` \u89e6\u53d1\u7684\u914d\u7f6e\u66f4\u65b0\uff08\u9700\u8981 `commands.config: true`\uff09\u3002\n\n\u7981\u7528\u65b9\u5f0f\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: { whatsapp: { configWrites: false } },\n}\n<\/code><\/pre>\n<h2>\u67b6\u6784\uff08\u8c01\u62e5\u6709\u4ec0\u4e48\uff09<\/h2>\n<ul>\n<li><strong>Gateway \u7f51\u5173 \u7f51\u5173<\/strong>\u62e5\u6709 Baileys socket \u548c\u6536\u4ef6\u7bb1\u5faa\u73af\u3002<\/li>\n<li><strong>CLI \/ macOS \u5e94\u7528<\/strong>\u4e0e Gateway \u7f51\u5173 \u7f51\u5173\u901a\u4fe1\uff1b\u4e0d\u76f4\u63a5\u4f7f\u7528 Baileys\u3002<\/li>\n<li>\u53d1\u9001\u51fa\u7ad9\u6d88\u606f\u9700\u8981<strong>\u6d3b\u8dc3\u7684\u76d1\u542c\u5668<\/strong>\uff1b\u5426\u5219\u53d1\u9001\u4f1a\u5feb\u901f\u5931\u8d25\u3002<\/li>\n<\/ul>\n<h2>\u83b7\u53d6\u624b\u673a\u53f7\u7801\uff08\u4e24\u79cd\u6a21\u5f0f\uff09<\/h2>\n<p>WhatsApp \u9700\u8981\u771f\u5b9e\u624b\u673a\u53f7\u7801\u8fdb\u884c\u9a8c\u8bc1\u3002VoIP \u548c\u865a\u62df\u53f7\u7801\u901a\u5e38\u4f1a\u88ab\u5c01\u9501\u3002\u5728 WhatsApp \u4e0a\u8fd0\u884c OpenClaw \u6709\u4e24\u79cd\u652f\u6301\u7684\u65b9\u5f0f\uff1a<\/p>\n<h3>\u4e13\u7528\u53f7\u7801\uff08\u63a8\u8350\uff09<\/h3>\n<p>\u4e3a OpenClaw \u4f7f\u7528<strong>\u5355\u72ec\u7684\u624b\u673a\u53f7\u7801<\/strong>\u3002\u6700\u4f73\u7528\u6237\u4f53\u9a8c\uff0c\u6e05\u6670\u7684\u8def\u7531\uff0c\u65e0\u81ea\u804a\u5929\u602a\u5f02\u95ee\u9898\u3002\u7406\u60f3\u8bbe\u7f6e\uff1a<strong>\u5907\u7528\/\u65e7 Android \u624b\u673a + eSIM<\/strong>\u3002\u4fdd\u6301 Wi-Fi \u548c\u7535\u6e90\u8fde\u63a5\uff0c\u901a\u8fc7\u4e8c\u7ef4\u7801\u5173\u8054\u3002<\/p>\n<p><strong>WhatsApp Business\uff1a<\/strong> \u4f60\u53ef\u4ee5\u5728\u540c\u4e00\u8bbe\u5907\u4e0a\u4f7f\u7528\u4e0d\u540c\u53f7\u7801\u7684 WhatsApp Business\u3002\u975e\u5e38\u9002\u5408\u5c06\u4e2a\u4eba WhatsApp \u5206\u5f00\u2014\u2014\u5b89\u88c5 WhatsApp Business \u5e76\u5728\u90a3\u91cc\u6ce8\u518c OpenClaw \u53f7\u7801\u3002<\/p>\n<p><strong>\u793a\u4f8b\u914d\u7f6e\uff08\u4e13\u7528\u53f7\u7801\uff0c\u5355\u7528\u6237\u5141\u8bb8\u5217\u8868\uff09\uff1a<\/strong><\/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    whatsapp: {<br \/>\n      dmPolicy: &#8220;allowlist&#8221;,<br \/>\n      allowFrom: [&#8220;+15551234567&#8221;],<br \/>\n    },<br \/>\n  },<br \/>\n}<\/p>\n<pre><code>\n**\u914d\u5bf9\u6a21\u5f0f\uff08\u53ef\u9009\uff09\uff1a**\n\u5982\u679c\u4f60\u60f3\u4f7f\u7528\u914d\u5bf9\u800c\u4e0d\u662f\u5141\u8bb8\u5217\u8868\uff0c\u8bf7\u5c06 `channels.whatsapp.dmPolicy` \u8bbe\u7f6e\u4e3a `pairing`\u3002\u672a\u77e5\u53d1\u9001\u8005\u4f1a\u6536\u5230\u914d\u5bf9\u7801\uff1b\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u6279\u51c6\uff1a\n`openclaw pairing approve whatsapp &lt;code&gt;`\n\n### \u4e2a\u4eba\u53f7\u7801\uff08\u5907\u9009\u65b9\u6848\uff09\n\n\u5feb\u901f\u5907\u9009\u65b9\u6848\uff1a\u5728**\u4f60\u81ea\u5df1\u7684\u53f7\u7801**\u4e0a\u8fd0\u884c OpenClaw\u3002\u7ed9\u81ea\u5df1\u53d1\u6d88\u606f\uff08WhatsApp&quot;\u7ed9\u81ea\u5df1\u53d1\u6d88\u606f&quot;\uff09\u8fdb\u884c\u6d4b\u8bd5\uff0c\u8fd9\u6837\u5c31\u4e0d\u4f1a\u6253\u6270\u8054\u7cfb\u4eba\u3002\u5728\u8bbe\u7f6e\u548c\u5b9e\u9a8c\u671f\u95f4\u9700\u8981\u5728\u4e3b\u624b\u673a\u4e0a\u9605\u8bfb\u9a8c\u8bc1\u7801\u3002**\u5fc5\u987b\u542f\u7528\u81ea\u804a\u5929\u6a21\u5f0f\u3002**\n\u5f53\u5411\u5bfc\u8be2\u95ee\u4f60\u7684\u4e2a\u4eba WhatsApp \u53f7\u7801\u65f6\uff0c\u8f93\u5165\u4f60\u5c06\u7528\u4e8e\u53d1\u9001\u6d88\u606f\u7684\u624b\u673a\uff08\u6240\u6709\u8005\/\u53d1\u9001\u8005\uff09\uff0c\u800c\u4e0d\u662f\u52a9\u624b\u53f7\u7801\u3002\n\n**\u793a\u4f8b\u914d\u7f6e\uff08\u4e2a\u4eba\u53f7\u7801\uff0c\u81ea\u804a\u5929\uff09\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;whatsapp&quot;: {\n    &quot;selfChatMode&quot;: true,\n    &quot;dmPolicy&quot;: &quot;allowlist&quot;,\n    &quot;allowFrom&quot;: [&quot;+15551234567&quot;]\n  }\n}\n<\/code><\/pre>\n<p>\u5f53\u8bbe\u7f6e\u4e86 <code>identity.name<\/code> \u65f6\uff0c\u81ea\u804a\u5929\u56de\u590d\u9ed8\u8ba4\u4e3a <code>[{identity.name}]<\/code>\uff08\u5426\u5219\u4e3a <code>[openclaw]<\/code>\uff09\uff0c<br \/>\n\u524d\u63d0\u662f <code>messages.responsePrefix<\/code> \u672a\u8bbe\u7f6e\u3002\u660e\u786e\u8bbe\u7f6e\u5b83\u53ef\u4ee5\u81ea\u5b9a\u4e49\u6216\u7981\u7528<br \/>\n\u524d\u7f00\uff08\u4f7f\u7528 <code>\"\"<\/code> \u6765\u79fb\u9664\uff09\u3002<\/p>\n<h3>\u53f7\u7801\u83b7\u53d6\u63d0\u793a<\/h3>\n<ul>\n<li><strong>\u672c\u5730 eSIM<\/strong> \u6765\u81ea\u4f60\u6240\u5728\u56fd\u5bb6\u7684\u79fb\u52a8\u8fd0\u8425\u5546\uff08\u6700\u53ef\u9760\uff09<\/li>\n<li>\u5965\u5730\u5229\uff1a<a href=\"https:\/\/www.hot.at\">hot.at<\/a><\/li>\n<li>\u82f1\u56fd\uff1a<a href=\"https:\/\/www.giffgaff.com\">giffgaff<\/a> \u2014 \u514d\u8d39 SIM \u5361\uff0c\u65e0\u5408\u7ea6<\/li>\n<li><strong>\u9884\u4ed8\u8d39 SIM \u5361<\/strong> \u2014 \u4fbf\u5b9c\uff0c\u53ea\u9700\u63a5\u6536\u4e00\u6761\u9a8c\u8bc1\u77ed\u4fe1<\/li>\n<\/ul>\n<p><strong>\u907f\u514d\uff1a<\/strong> TextNow\u3001Google Voice\u3001\u5927\u591a\u6570&#8221;\u514d\u8d39\u77ed\u4fe1&#8221;\u670d\u52a1\u2014\u2014WhatsApp \u4f1a\u79ef\u6781\u5c01\u9501\u8fd9\u4e9b\u3002<\/p>\n<p><strong>\u63d0\u793a\uff1a<\/strong> \u8be5\u53f7\u7801\u53ea\u9700\u8981\u63a5\u6536\u4e00\u6761\u9a8c\u8bc1\u77ed\u4fe1\u3002\u4e4b\u540e\uff0cWhatsApp Web \u4f1a\u8bdd\u901a\u8fc7 <code>creds.json<\/code> \u6301\u4e45\u5316\u3002<\/p>\n<h2>\u4e3a\u4ec0\u4e48\u4e0d\u7528 Twilio\uff1f<\/h2>\n<ul>\n<li>\u65e9\u671f OpenClaw \u7248\u672c\u652f\u6301 Twilio \u7684 WhatsApp Business \u96c6\u6210\u3002<\/li>\n<li>WhatsApp Business \u53f7\u7801\u4e0d\u9002\u5408\u4e2a\u4eba\u52a9\u624b\u3002<\/li>\n<li>Meta \u5f3a\u5236\u6267\u884c 24 \u5c0f\u65f6\u56de\u590d\u7a97\u53e3\uff1b\u5982\u679c\u4f60\u5728\u8fc7\u53bb 24 \u5c0f\u65f6\u5185\u6ca1\u6709\u56de\u590d\uff0c\u5546\u4e1a\u53f7\u7801\u65e0\u6cd5\u53d1\u8d77\u65b0\u6d88\u606f\u3002<\/li>\n<li>\u9ad8\u9891\u6216&#8221;\u9891\u7e41&#8221;\u4f7f\u7528\u4f1a\u89e6\u53d1\u6fc0\u8fdb\u7684\u5c01\u9501\uff0c\u56e0\u4e3a\u5546\u4e1a\u8d26\u6237\u4e0d\u9002\u5408\u53d1\u9001\u5927\u91cf\u4e2a\u4eba\u52a9\u624b\u6d88\u606f\u3002<\/li>\n<li>\u7ed3\u679c\uff1a\u6295\u9012\u4e0d\u53ef\u9760\u4e14\u9891\u7e41\u88ab\u5c01\u9501\uff0c\u56e0\u6b64\u8be5\u652f\u6301\u5df2\u88ab\u79fb\u9664\u3002<\/li>\n<\/ul>\n<h2>\u767b\u5f55 + \u51ed\u8bc1<\/h2>\n<ul>\n<li>\u767b\u5f55\u547d\u4ee4\uff1a<code>openclaw channels login<\/code>\uff08\u901a\u8fc7\u5173\u8054\u8bbe\u5907\u626b\u63cf\u4e8c\u7ef4\u7801\uff09\u3002<\/li>\n<li>\u591a\u8d26\u6237\u767b\u5f55\uff1a<code>openclaw channels login --account &lt;id&gt;<\/code>\uff08<code>&lt;id&gt;<\/code> = <code>accountId<\/code>\uff09\u3002<\/li>\n<li>\u9ed8\u8ba4\u8d26\u6237\uff08\u7701\u7565 <code>--account<\/code> \u65f6\uff09\uff1a\u5982\u679c\u5b58\u5728\u5219\u4e3a <code>default<\/code>\uff0c\u5426\u5219\u4e3a\u7b2c\u4e00\u4e2a\u914d\u7f6e\u7684\u8d26\u6237 id\uff08\u6392\u5e8f\u540e\uff09\u3002<\/li>\n<li>\u51ed\u8bc1\u5b58\u50a8\u5728 <code>~\/.openclaw\/credentials\/whatsapp\/&lt;accountId&gt;\/creds.json<\/code>\u3002<\/li>\n<li>\u5907\u4efd\u526f\u672c\u5728 <code>creds.json.bak<\/code>\uff08\u635f\u574f\u65f6\u6062\u590d\uff09\u3002<\/li>\n<li>\u65e7\u7248\u517c\u5bb9\u6027\uff1a\u8f83\u65e7\u7684\u5b89\u88c5\u5c06 Baileys \u6587\u4ef6\u76f4\u63a5\u5b58\u50a8\u5728 <code>~\/.openclaw\/credentials\/<\/code> \u4e2d\u3002<\/li>\n<li>\u767b\u51fa\uff1a<code>openclaw channels logout<\/code>\uff08\u6216 <code>--account &lt;id&gt;<\/code>\uff09\u5220\u9664 WhatsApp \u8ba4\u8bc1\u72b6\u6001\uff08\u4f46\u4fdd\u7559\u5171\u4eab\u7684 <code>oauth.json<\/code>\uff09\u3002<\/li>\n<li>\u5df2\u767b\u51fa\u7684 socket =&gt; \u9519\u8bef\u63d0\u793a\u91cd\u65b0\u5173\u8054\u3002<\/li>\n<\/ul>\n<h2>\u5165\u7ad9\u6d41\u7a0b\uff08\u79c1\u4fe1 + \u7fa4\u7ec4\uff09<\/h2>\n<ul>\n<li>WhatsApp \u4e8b\u4ef6\u6765\u81ea <code>messages.upsert<\/code>\uff08Baileys\uff09\u3002<\/li>\n<li>\u6536\u4ef6\u7bb1\u76d1\u542c\u5668\u5728\u5173\u95ed\u65f6\u5206\u79bb\uff0c\u4ee5\u907f\u514d\u5728\u6d4b\u8bd5\/\u91cd\u542f\u65f6\u7d2f\u79ef\u4e8b\u4ef6\u5904\u7406\u5668\u3002<\/li>\n<li>\u72b6\u6001\/\u5e7f\u64ad\u804a\u5929\u88ab\u5ffd\u7565\u3002<\/li>\n<li>\u76f4\u63a5\u804a\u5929\u4f7f\u7528 E.164\uff1b\u7fa4\u7ec4\u4f7f\u7528\u7fa4\u7ec4 JID\u3002<\/li>\n<li><strong>\u79c1\u4fe1\u7b56\u7565<\/strong>\uff1a<code>channels.whatsapp.dmPolicy<\/code> \u63a7\u5236\u76f4\u63a5\u804a\u5929\u8bbf\u95ee\uff08\u9ed8\u8ba4\uff1a<code>pairing<\/code>\uff09\u3002<\/li>\n<li>\u914d\u5bf9\uff1a\u672a\u77e5\u53d1\u9001\u8005\u4f1a\u6536\u5230\u914d\u5bf9\u7801\uff08\u901a\u8fc7 <code>openclaw pairing approve whatsapp &lt;code&gt;<\/code> \u6279\u51c6\uff1b\u7801\u5728 1 \u5c0f\u65f6\u540e\u8fc7\u671f\uff09\u3002<\/li>\n<li>\u5f00\u653e\uff1a\u9700\u8981 <code>channels.whatsapp.allowFrom<\/code> \u5305\u542b <code>\"*\"<\/code>\u3002<\/li>\n<li>\u4f60\u5173\u8054\u7684 WhatsApp \u53f7\u7801\u662f\u9690\u5f0f\u4fe1\u4efb\u7684\uff0c\u56e0\u6b64\u81ea\u8eab\u6d88\u606f\u4f1a\u8df3\u8fc7 <code>channels.whatsapp.dmPolicy<\/code> \u548c <code>channels.whatsapp.allowFrom<\/code> \u68c0\u67e5\u3002<\/li>\n<\/ul>\n<h3>\u4e2a\u4eba\u53f7\u7801\u6a21\u5f0f\uff08\u5907\u9009\u65b9\u6848\uff09<\/h3>\n<p>\u5982\u679c\u4f60\u5728<strong>\u4e2a\u4eba WhatsApp \u53f7\u7801<\/strong>\u4e0a\u8fd0\u884c OpenClaw\uff0c\u8bf7\u542f\u7528 <code>channels.whatsapp.selfChatMode<\/code>\uff08\u89c1\u4e0a\u9762\u7684\u793a\u4f8b\uff09\u3002<\/p>\n<p>\u884c\u4e3a\uff1a<\/p>\n<ul>\n<li>\u51fa\u7ad9\u79c1\u4fe1\u6c38\u8fdc\u4e0d\u4f1a\u89e6\u53d1\u914d\u5bf9\u56de\u590d\uff08\u9632\u6b62\u6253\u6270\u8054\u7cfb\u4eba\uff09\u3002<\/li>\n<li>\u5165\u7ad9\u672a\u77e5\u53d1\u9001\u8005\u4ecd\u9075\u5faa <code>channels.whatsapp.dmPolicy<\/code>\u3002<\/li>\n<li>\u81ea\u804a\u5929\u6a21\u5f0f\uff08allowFrom \u5305\u542b\u4f60\u7684\u53f7\u7801\uff09\u907f\u514d\u81ea\u52a8\u5df2\u8bfb\u56de\u6267\u5e76\u5ffd\u7565\u63d0\u53ca JID\u3002<\/li>\n<li>\u975e\u81ea\u804a\u5929\u79c1\u4fe1\u4f1a\u53d1\u9001\u5df2\u8bfb\u56de\u6267\u3002<\/li>\n<\/ul>\n<h2>\u5df2\u8bfb\u56de\u6267<\/h2>\n<p>\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0cGateway \u7f51\u5173 \u7f51\u5173\u5728\u63a5\u53d7\u5165\u7ad9 WhatsApp \u6d88\u606f\u540e\u5c06\u5176\u6807\u8bb0\u4e3a\u5df2\u8bfb\uff08\u84dd\u8272\u52fe\u53f7\uff09\u3002<\/p>\n<p>\u5168\u5c40\u7981\u7528\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: { whatsapp: { sendReadReceipts: false } },<br \/>\n}<\/p>\n<pre><code>\n\u6309\u8d26\u6237\u7981\u7528\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    whatsapp: {\n      accounts: {\n        personal: { sendReadReceipts: false },\n      },\n    },\n  },\n}\n<\/code><\/pre>\n<p>\u6ce8\u610f\u4e8b\u9879\uff1a<\/p>\n<ul>\n<li>\u81ea\u804a\u5929\u6a21\u5f0f\u59cb\u7ec8\u8df3\u8fc7\u5df2\u8bfb\u56de\u6267\u3002<\/li>\n<\/ul>\n<h2>WhatsApp \u5e38\u89c1\u95ee\u9898\uff1a\u53d1\u9001\u6d88\u606f + \u914d\u5bf9<\/h2>\n<p><strong>\u5f53\u6211\u5173\u8054 WhatsApp \u65f6\uff0cOpenClaw \u4f1a\u7ed9\u968f\u673a\u8054\u7cfb\u4eba\u53d1\u6d88\u606f\u5417\uff1f<\/strong><br \/>\n\u4e0d\u4f1a\u3002\u9ed8\u8ba4\u79c1\u4fe1\u7b56\u7565\u662f<strong>\u914d\u5bf9<\/strong>\uff0c\u56e0\u6b64\u672a\u77e5\u53d1\u9001\u8005\u53ea\u4f1a\u6536\u5230\u914d\u5bf9\u7801\uff0c\u4ed6\u4eec\u7684\u6d88\u606f<strong>\u4e0d\u4f1a\u88ab\u5904\u7406<\/strong>\u3002OpenClaw \u53ea\u4f1a\u56de\u590d\u5b83\u6536\u5230\u7684\u804a\u5929\uff0c\u6216\u4f60\u660e\u786e\u89e6\u53d1\u7684\u53d1\u9001\uff08\u667a\u80fd\u4f53\/CLI\uff09\u3002<\/p>\n<p><strong>WhatsApp \u4e0a\u7684\u914d\u5bf9\u662f\u5982\u4f55\u5de5\u4f5c\u7684\uff1f<\/strong><br \/>\n\u914d\u5bf9\u662f\u672a\u77e5\u53d1\u9001\u8005\u7684\u79c1\u4fe1\u95e8\u63a7\uff1a<\/p>\n<ul>\n<li>\u6765\u81ea\u65b0\u53d1\u9001\u8005\u7684\u7b2c\u4e00\u6761\u79c1\u4fe1\u8fd4\u56de\u4e00\u4e2a\u77ed\u7801\uff08\u6d88\u606f\u4e0d\u4f1a\u88ab\u5904\u7406\uff09\u3002<\/li>\n<li>\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u6279\u51c6\uff1a<code>openclaw pairing approve whatsapp &lt;code&gt;<\/code>\uff08\u4f7f\u7528 <code>openclaw pairing list whatsapp<\/code> \u5217\u51fa\uff09\u3002<\/li>\n<li>\u7801\u5728 1 \u5c0f\u65f6\u540e\u8fc7\u671f\uff1b\u6bcf\u4e2a\u6e20\u9053\u7684\u5f85\u5904\u7406\u8bf7\u6c42\u4e0a\u9650\u4e3a 3 \u4e2a\u3002<\/li>\n<\/ul>\n<p><strong>\u591a\u4e2a\u4eba\u53ef\u4ee5\u5728\u4e00\u4e2a WhatsApp \u53f7\u7801\u4e0a\u4f7f\u7528\u4e0d\u540c\u7684 OpenClaw \u5b9e\u4f8b\u5417\uff1f<\/strong><br \/>\n\u53ef\u4ee5\uff0c\u901a\u8fc7 <code>bindings<\/code> \u5c06\u6bcf\u4e2a\u53d1\u9001\u8005\u8def\u7531\u5230\u4e0d\u540c\u7684\u667a\u80fd\u4f53\uff08peer <code>kind: \"dm\"<\/code>\uff0c\u53d1\u9001\u8005 E.164 \u5982 <code>+15551234567<\/code>\uff09\u3002\u56de\u590d\u4ecd\u7136\u6765\u81ea<strong>\u540c\u4e00\u4e2a WhatsApp \u8d26\u6237<\/strong>\uff0c\u76f4\u63a5\u804a\u5929\u4f1a\u6298\u53e0\u5230\u6bcf\u4e2a\u667a\u80fd\u4f53\u7684\u4e3b\u4f1a\u8bdd\uff0c\u56e0\u6b64<strong>\u6bcf\u4eba\u4f7f\u7528\u4e00\u4e2a\u667a\u80fd\u4f53<\/strong>\u3002\u79c1\u4fe1\u8bbf\u95ee\u63a7\u5236\uff08<code>dmPolicy<\/code>\/<code>allowFrom<\/code>\uff09\u662f\u6bcf\u4e2a WhatsApp \u8d26\u6237\u5168\u5c40\u7684\u3002\u53c2\u89c1<a href=\"https:\/\/pa.yingzhi8.cn\/?p=98\">\u591a\u667a\u80fd\u4f53\u8def\u7531<\/a>\u3002<\/p>\n<p><strong>\u4e3a\u4ec0\u4e48\u5411\u5bfc\u4f1a\u8be2\u95ee\u6211\u7684\u624b\u673a\u53f7\u7801\uff1f<\/strong><br \/>\n\u5411\u5bfc\u4f7f\u7528\u5b83\u6765\u8bbe\u7f6e\u4f60\u7684<strong>\u5141\u8bb8\u5217\u8868\/\u6240\u6709\u8005<\/strong>\uff0c\u4ee5\u4fbf\u5141\u8bb8\u4f60\u81ea\u5df1\u7684\u79c1\u4fe1\u3002\u5b83\u4e0d\u4f1a\u7528\u4e8e\u81ea\u52a8\u53d1\u9001\u3002\u5982\u679c\u4f60\u5728\u4e2a\u4eba WhatsApp \u53f7\u7801\u4e0a\u8fd0\u884c\uff0c\u8bf7\u4f7f\u7528\u76f8\u540c\u7684\u53f7\u7801\u5e76\u542f\u7528 <code>channels.whatsapp.selfChatMode<\/code>\u3002<\/p>\n<h2>\u6d88\u606f\u89c4\u8303\u5316\uff08\u6a21\u578b\u770b\u5230\u7684\u5185\u5bb9\uff09<\/h2>\n<ul>\n<li><code>Body<\/code> \u662f\u5e26\u6709\u4fe1\u5c01\u7684\u5f53\u524d\u6d88\u606f\u6b63\u6587\u3002<\/li>\n<li>\u5f15\u7528\u56de\u590d\u4e0a\u4e0b\u6587<strong>\u59cb\u7ec8\u9644\u52a0<\/strong>\uff1a<br \/>\n  <code>[Replying to +1555 id:ABC123]<br \/>\n  &lt;quoted text or &lt;media:...&gt;&gt;<br \/>\n  [\/Replying]<\/code><\/li>\n<li>\u56de\u590d\u5143\u6570\u636e\u4e5f\u4f1a\u8bbe\u7f6e\uff1a<\/li>\n<li><code>ReplyToId<\/code> = stanzaId<\/li>\n<li><code>ReplyToBody<\/code> = \u5f15\u7528\u6b63\u6587\u6216\u5a92\u4f53\u5360\u4f4d\u7b26<\/li>\n<li><code>ReplyToSender<\/code> = \u5df2\u77e5\u65f6\u4e3a E.164<\/li>\n<li>\u7eaf\u5a92\u4f53\u5165\u7ad9\u6d88\u606f\u4f7f\u7528\u5360\u4f4d\u7b26\uff1a<\/li>\n<li><code>&lt;media:image|video|audio|document|sticker&gt;<\/code><\/li>\n<\/ul>\n<h2>\u7fa4\u7ec4<\/h2>\n<ul>\n<li>\u7fa4\u7ec4\u6620\u5c04\u5230 <code>agent:&lt;agentId&gt;:whatsapp:group:&lt;jid&gt;<\/code> \u4f1a\u8bdd\u3002<\/li>\n<li>\u7fa4\u7ec4\u7b56\u7565\uff1a<code>channels.whatsapp.groupPolicy = open|disabled|allowlist<\/code>\uff08\u9ed8\u8ba4 <code>allowlist<\/code>\uff09\u3002<\/li>\n<li>\u6fc0\u6d3b\u6a21\u5f0f\uff1a<\/li>\n<li><code>mention<\/code>\uff08\u9ed8\u8ba4\uff09\uff1a\u9700\u8981 @\u63d0\u53ca\u6216\u6b63\u5219\u5339\u914d\u3002<\/li>\n<li><code>always<\/code>\uff1a\u59cb\u7ec8\u89e6\u53d1\u3002<\/li>\n<li><code>\/activation mention|always<\/code> \u4ec5\u9650\u6240\u6709\u8005\uff0c\u5fc5\u987b\u4f5c\u4e3a\u72ec\u7acb\u6d88\u606f\u53d1\u9001\u3002<\/li>\n<li>\u6240\u6709\u8005 = <code>channels.whatsapp.allowFrom<\/code>\uff08\u5982\u679c\u672a\u8bbe\u7f6e\u5219\u4e3a\u81ea\u8eab E.164\uff09\u3002<\/li>\n<li><strong>\u5386\u53f2\u6ce8\u5165<\/strong>\uff08\u4ec5\u5f85\u5904\u7406\uff09\uff1a<\/li>\n<li>\u6700\u8fd1<em>\u672a\u5904\u7406<\/em>\u7684\u6d88\u606f\uff08\u9ed8\u8ba4 50 \u6761\uff09\u63d2\u5165\u5728\uff1a<br \/>\n    <code>[Chat messages since your last reply - for context]<\/code>\uff08\u5df2\u5728\u4f1a\u8bdd\u4e2d\u7684\u6d88\u606f\u4e0d\u4f1a\u91cd\u65b0\u6ce8\u5165\uff09<\/li>\n<li>\u5f53\u524d\u6d88\u606f\u5728\uff1a<br \/>\n    <code>[Current message - respond to this]<\/code><\/li>\n<li>\u9644\u52a0\u53d1\u9001\u8005\u540e\u7f00\uff1a<code>[from: Name (+E164)]<\/code><\/li>\n<li>\u7fa4\u7ec4\u5143\u6570\u636e\u7f13\u5b58 5 \u5206\u949f\uff08\u4e3b\u9898 + \u53c2\u4e0e\u8005\uff09\u3002<\/li>\n<\/ul>\n<h2>\u56de\u590d\u6295\u9012\uff08\u7ebf\u7a0b\uff09<\/h2>\n<ul>\n<li>WhatsApp Web \u53d1\u9001\u6807\u51c6\u6d88\u606f\uff08\u5f53\u524d Gateway \u7f51\u5173 \u7f51\u5173\u65e0\u5f15\u7528\u56de\u590d\u7ebf\u7a0b\uff09\u3002<\/li>\n<li>\u6b64\u6e20\u9053\u5ffd\u7565\u56de\u590d\u6807\u7b7e\u3002<\/li>\n<\/ul>\n<h2>\u786e\u8ba4\u8868\u60c5\uff08\u6536\u5230\u65f6\u81ea\u52a8\u56de\u5e94\uff09<\/h2>\n<p>WhatsApp \u53ef\u4ee5\u5728\u6536\u5230\u4f20\u5165\u6d88\u606f\u65f6\u7acb\u5373\u81ea\u52a8\u53d1\u9001\u8868\u60c5\u56de\u5e94\uff0c\u5728\u673a\u5668\u4eba\u751f\u6210\u56de\u590d\u4e4b\u524d\u3002\u8fd9\u4e3a\u7528\u6237\u63d0\u4f9b\u5373\u65f6\u53cd\u9988\uff0c\u8868\u660e\u4ed6\u4eec\u7684\u6d88\u606f\u5df2\u6536\u5230\u3002<\/p>\n<p><strong>\u914d\u7f6e\uff1a<\/strong><\/p>\n<p>&#8220;`json  theme={&#8220;theme&#8221;:{&#8220;light&#8221;:&#8221;min-light&#8221;,&#8221;dark&#8221;:&#8221;min-dark&#8221;}}<br \/>\n{<br \/>\n  &#8220;whatsapp&#8221;: {<br \/>\n    &#8220;ackReaction&#8221;: {<br \/>\n      &#8220;emoji&#8221;: &#8220;\ud83d\udc40&#8221;,<br \/>\n      &#8220;direct&#8221;: true,<br \/>\n      &#8220;group&#8221;: &#8220;mentions&#8221;<br \/>\n    }<br \/>\n  }<br \/>\n}<\/p>\n<pre><code>\n**\u9009\u9879\uff1a**\n\n* `emoji`\uff08\u5b57\u7b26\u4e32\uff09\uff1a\u7528\u4e8e\u786e\u8ba4\u7684\u8868\u60c5\uff08\u4f8b\u5982&quot;\ud83d\udc40&quot;\u3001&quot;\u2705&quot;\u3001&quot;\ud83d\udce8&quot;\uff09\u3002\u4e3a\u7a7a\u6216\u7701\u7565 = \u529f\u80fd\u7981\u7528\u3002\n* `direct`\uff08\u5e03\u5c14\u503c\uff0c\u9ed8\u8ba4\uff1a`true`\uff09\uff1a\u5728\u76f4\u63a5\/\u79c1\u4fe1\u804a\u5929\u4e2d\u53d1\u9001\u8868\u60c5\u56de\u5e94\u3002\n* `group`\uff08\u5b57\u7b26\u4e32\uff0c\u9ed8\u8ba4\uff1a`&quot;mentions&quot;`\uff09\uff1a\u7fa4\u804a\u884c\u4e3a\uff1a\n  * `&quot;always&quot;`\uff1a\u5bf9\u6240\u6709\u7fa4\u6d88\u606f\u505a\u51fa\u56de\u5e94\uff08\u5373\u4f7f\u6ca1\u6709 @\u63d0\u53ca\uff09\n  * `&quot;mentions&quot;`\uff1a\u4ec5\u5728\u673a\u5668\u4eba\u88ab @\u63d0\u53ca\u65f6\u505a\u51fa\u56de\u5e94\n  * `&quot;never&quot;`\uff1a\u4ece\u4e0d\u5728\u7fa4\u7ec4\u4e2d\u505a\u51fa\u56de\u5e94\n\n**\u6309\u8d26\u6237\u8986\u76d6\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;whatsapp&quot;: {\n    &quot;accounts&quot;: {\n      &quot;work&quot;: {\n        &quot;ackReaction&quot;: {\n          &quot;emoji&quot;: &quot;\u2705&quot;,\n          &quot;direct&quot;: false,\n          &quot;group&quot;: &quot;always&quot;\n        }\n      }\n    }\n  }\n}\n<\/code><\/pre>\n<p><strong>\u884c\u4e3a\u8bf4\u660e\uff1a<\/strong><\/p>\n<ul>\n<li>\u8868\u60c5\u56de\u5e94\u5728\u6d88\u606f\u6536\u5230\u65f6<strong>\u7acb\u5373<\/strong>\u53d1\u9001\uff0c\u5728\u8f93\u5165\u6307\u793a\u5668\u6216\u673a\u5668\u4eba\u56de\u590d\u4e4b\u524d\u3002<\/li>\n<li>\u5728 <code>requireMention: false<\/code>\uff08\u6fc0\u6d3b\uff1aalways\uff09\u7684\u7fa4\u7ec4\u4e2d\uff0c<code>group: \"mentions\"<\/code> \u4f1a\u5bf9\u6240\u6709\u6d88\u606f\u505a\u51fa\u56de\u5e94\uff08\u4e0d\u4ec5\u4ec5\u662f @\u63d0\u53ca\uff09\u3002<\/li>\n<li>\u5373\u53d1\u5373\u5fd8\uff1a\u8868\u60c5\u56de\u5e94\u5931\u8d25\u4f1a\u88ab\u8bb0\u5f55\u4f46\u4e0d\u4f1a\u963b\u6b62\u673a\u5668\u4eba\u56de\u590d\u3002<\/li>\n<li>\u7fa4\u7ec4\u8868\u60c5\u56de\u5e94\u4f1a\u81ea\u52a8\u5305\u542b\u53c2\u4e0e\u8005 JID\u3002<\/li>\n<li>WhatsApp \u5ffd\u7565 <code>messages.ackReaction<\/code>\uff1b\u8bf7\u6539\u7528 <code>channels.whatsapp.ackReaction<\/code>\u3002<\/li>\n<\/ul>\n<h2>\u667a\u80fd\u4f53\u5de5\u5177\uff08\u8868\u60c5\u56de\u5e94\uff09<\/h2>\n<ul>\n<li>\u5de5\u5177\uff1a<code>whatsapp<\/code>\uff0c\u5e26\u6709 <code>react<\/code> \u52a8\u4f5c\uff08<code>chatJid<\/code>\u3001<code>messageId<\/code>\u3001<code>emoji<\/code>\uff0c\u53ef\u9009 <code>remove<\/code>\uff09\u3002<\/li>\n<li>\u53ef\u9009\uff1a<code>participant<\/code>\uff08\u7fa4\u7ec4\u53d1\u9001\u8005\uff09\u3001<code>fromMe<\/code>\uff08\u5bf9\u81ea\u5df1\u7684\u6d88\u606f\u505a\u51fa\u56de\u5e94\uff09\u3001<code>accountId<\/code>\uff08\u591a\u8d26\u6237\uff09\u3002<\/li>\n<li>\u8868\u60c5\u79fb\u9664\u8bed\u4e49\uff1a\u53c2\u89c1 <a href=\"https:\/\/pa.yingzhi8.cn\/?p=290\">\/tools\/reactions<\/a>\u3002<\/li>\n<li>\u5de5\u5177\u95e8\u63a7\uff1a<code>channels.whatsapp.actions.reactions<\/code>\uff08\u9ed8\u8ba4\uff1a\u542f\u7528\uff09\u3002<\/li>\n<\/ul>\n<h2>\u9650\u5236<\/h2>\n<ul>\n<li>\u51fa\u7ad9\u6587\u672c\u6309 <code>channels.whatsapp.textChunkLimit<\/code> \u5206\u5757\uff08\u9ed8\u8ba4 4000\uff09\u3002<\/li>\n<li>\u53ef\u9009\u6362\u884c\u5206\u5757\uff1a\u8bbe\u7f6e <code>channels.whatsapp.chunkMode=\"newline\"<\/code> \u5728\u957f\u5ea6\u5206\u5757\u4e4b\u524d\u6309\u7a7a\u884c\uff08\u6bb5\u843d\u8fb9\u754c\uff09\u5206\u5272\u3002<\/li>\n<li>\u5165\u7ad9\u5a92\u4f53\u4fdd\u5b58\u53d7 <code>channels.whatsapp.mediaMaxMb<\/code> \u9650\u5236\uff08\u9ed8\u8ba4 50 MB\uff09\u3002<\/li>\n<li>\u51fa\u7ad9\u5a92\u4f53\u9879\u53d7 <code>agents.defaults.mediaMaxMb<\/code> \u9650\u5236\uff08\u9ed8\u8ba4 5 MB\uff09\u3002<\/li>\n<\/ul>\n<h2>\u51fa\u7ad9\u53d1\u9001\uff08\u6587\u672c + \u5a92\u4f53\uff09<\/h2>\n<ul>\n<li>\u4f7f\u7528\u6d3b\u8dc3\u7684\u7f51\u9875\u76d1\u542c\u5668\uff1b\u5982\u679c Gateway \u7f51\u5173 \u7f51\u5173\u672a\u8fd0\u884c\u5219\u62a5\u9519\u3002<\/li>\n<li>\u6587\u672c\u5206\u5757\uff1a\u6bcf\u6761\u6d88\u606f\u6700\u5927 4k\uff08\u53ef\u901a\u8fc7 <code>channels.whatsapp.textChunkLimit<\/code> \u914d\u7f6e\uff0c\u53ef\u9009 <code>channels.whatsapp.chunkMode<\/code>\uff09\u3002<\/li>\n<li>\u5a92\u4f53\uff1a<\/li>\n<li>\u652f\u6301\u56fe\u7247\/\u89c6\u9891\/\u97f3\u9891\/\u6587\u6863\u3002<\/li>\n<li>\u97f3\u9891\u4f5c\u4e3a PTT \u53d1\u9001\uff1b<code>audio\/ogg<\/code> =&gt; <code>audio\/ogg; codecs=opus<\/code>\u3002<\/li>\n<li>\u4ec5\u5728\u7b2c\u4e00\u4e2a\u5a92\u4f53\u9879\u4e0a\u6dfb\u52a0\u6807\u9898\u3002<\/li>\n<li>\u5a92\u4f53\u83b7\u53d6\u652f\u6301 HTTP(S) \u548c\u672c\u5730\u8def\u5f84\u3002<\/li>\n<li>\u52a8\u753b GIF\uff1aWhatsApp \u671f\u671b\u5e26\u6709 <code>gifPlayback: true<\/code> \u7684 MP4 \u4ee5\u5b9e\u73b0\u5185\u8054\u5faa\u73af\u3002\n<ul>\n<li>CLI\uff1a<code>openclaw message send --media &lt;mp4&gt; --gif-playback<\/code><\/li>\n<li>Gateway \u7f51\u5173 \u7f51\u5173\uff1a<code>send<\/code> \u53c2\u6570\u5305\u542b <code>gifPlayback: true<\/code><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h2>\u8bed\u97f3\u6d88\u606f\uff08PTT \u97f3\u9891\uff09<\/h2>\n<p>WhatsApp \u5c06\u97f3\u9891\u4f5c\u4e3a<strong>\u8bed\u97f3\u6d88\u606f<\/strong>\uff08PTT \u6c14\u6ce1\uff09\u53d1\u9001\u3002<\/p>\n<ul>\n<li>\u6700\u4f73\u6548\u679c\uff1aOGG\/Opus\u3002OpenClaw \u5c06 <code>audio\/ogg<\/code> \u91cd\u5199\u4e3a <code>audio\/ogg; codecs=opus<\/code>\u3002<\/li>\n<li>WhatsApp \u5ffd\u7565 <code>[[audio_as_voice]]<\/code>\uff08\u97f3\u9891\u5df2\u4f5c\u4e3a\u8bed\u97f3\u6d88\u606f\u53d1\u9001\uff09\u3002<\/li>\n<\/ul>\n<h2>\u5a92\u4f53\u9650\u5236 + \u4f18\u5316<\/h2>\n<ul>\n<li>\u9ed8\u8ba4\u51fa\u7ad9\u4e0a\u9650\uff1a5 MB\uff08\u6bcf\u4e2a\u5a92\u4f53\u9879\uff09\u3002<\/li>\n<li>\u8986\u76d6\uff1a<code>agents.defaults.mediaMaxMb<\/code>\u3002<\/li>\n<li>\u56fe\u7247\u81ea\u52a8\u4f18\u5316\u4e3a\u4e0a\u9650\u4ee5\u4e0b\u7684 JPEG\uff08\u8c03\u6574\u5927\u5c0f + \u8d28\u91cf\u626b\u63cf\uff09\u3002<\/li>\n<li>\u8d85\u5927\u5a92\u4f53 =&gt; \u9519\u8bef\uff1b\u5a92\u4f53\u56de\u590d\u964d\u7ea7\u4e3a\u6587\u672c\u8b66\u544a\u3002<\/li>\n<\/ul>\n<h2>\u5fc3\u8df3<\/h2>\n<ul>\n<li><strong>Gateway \u7f51\u5173 \u7f51\u5173\u5fc3\u8df3<\/strong>\u8bb0\u5f55\u8fde\u63a5\u5065\u5eb7\u72b6\u6001\uff08<code>web.heartbeatSeconds<\/code>\uff0c\u9ed8\u8ba4 60 \u79d2\uff09\u3002<\/li>\n<li><strong>\u667a\u80fd\u4f53\u5fc3\u8df3<\/strong>\u53ef\u4ee5\u6309\u667a\u80fd\u4f53\u914d\u7f6e\uff08<code>agents.list[].heartbeat<\/code>\uff09\u6216\u901a\u8fc7<br \/>\n  <code>agents.defaults.heartbeat<\/code> \u5168\u5c40\u914d\u7f6e\uff08\u5f53\u6ca1\u6709\u8bbe\u7f6e\u6309\u667a\u80fd\u4f53\u6761\u76ee\u65f6\u7684\u964d\u7ea7\uff09\u3002<\/li>\n<li>\u4f7f\u7528\u914d\u7f6e\u7684\u5fc3\u8df3\u63d0\u793a\u8bcd\uff08\u9ed8\u8ba4\uff1a<code>Read HEARTBEAT.md if it exists (workspace context). Follow it strictly. Do not infer or repeat old tasks from prior chats. If nothing needs attention, reply HEARTBEAT_OK.<\/code>\uff09+ <code>HEARTBEAT_OK<\/code> \u8df3\u8fc7\u884c\u4e3a\u3002<\/li>\n<li>\u6295\u9012\u9ed8\u8ba4\u4e3a\u6700\u540e\u4f7f\u7528\u7684\u6e20\u9053\uff08\u6216\u914d\u7f6e\u7684\u76ee\u6807\uff09\u3002<\/li>\n<\/ul>\n<h2>\u91cd\u8fde\u884c\u4e3a<\/h2>\n<ul>\n<li>\u9000\u907f\u7b56\u7565\uff1a<code>web.reconnect<\/code>\uff1a<\/li>\n<li><code>initialMs<\/code>\u3001<code>maxMs<\/code>\u3001<code>factor<\/code>\u3001<code>jitter<\/code>\u3001<code>maxAttempts<\/code>\u3002<\/li>\n<li>\u5982\u679c\u8fbe\u5230 maxAttempts\uff0c\u7f51\u9875\u76d1\u63a7\u505c\u6b62\uff08\u964d\u7ea7\uff09\u3002<\/li>\n<li>\u5df2\u767b\u51fa =&gt; \u505c\u6b62\u5e76\u8981\u6c42\u91cd\u65b0\u5173\u8054\u3002<\/li>\n<\/ul>\n<h2>\u914d\u7f6e\u5feb\u901f\u6620\u5c04<\/h2>\n<ul>\n<li><code>channels.whatsapp.dmPolicy<\/code>\uff08\u79c1\u4fe1\u7b56\u7565\uff1apairing\/allowlist\/open\/disabled\uff09\u3002<\/li>\n<li><code>channels.whatsapp.selfChatMode<\/code>\uff08\u540c\u624b\u673a\u8bbe\u7f6e\uff1b\u673a\u5668\u4eba\u4f7f\u7528\u4f60\u7684\u4e2a\u4eba WhatsApp \u53f7\u7801\uff09\u3002<\/li>\n<li><code>channels.whatsapp.allowFrom<\/code>\uff08\u79c1\u4fe1\u5141\u8bb8\u5217\u8868\uff09\u3002WhatsApp \u4f7f\u7528 E.164 \u624b\u673a\u53f7\u7801\uff08\u65e0\u7528\u6237\u540d\uff09\u3002<\/li>\n<li><code>channels.whatsapp.mediaMaxMb<\/code>\uff08\u5165\u7ad9\u5a92\u4f53\u4fdd\u5b58\u4e0a\u9650\uff09\u3002<\/li>\n<li><code>channels.whatsapp.ackReaction<\/code>\uff08\u6d88\u606f\u6536\u5230\u65f6\u7684\u81ea\u52a8\u56de\u5e94\uff1a<code>{emoji, direct, group}<\/code>\uff09\u3002<\/li>\n<li><code>channels.whatsapp.accounts.&lt;accountId&gt;.*<\/code>\uff08\u6309\u8d26\u6237\u8bbe\u7f6e + \u53ef\u9009 <code>authDir<\/code>\uff09\u3002<\/li>\n<li><code>channels.whatsapp.accounts.&lt;accountId&gt;.mediaMaxMb<\/code>\uff08\u6309\u8d26\u6237\u5165\u7ad9\u5a92\u4f53\u4e0a\u9650\uff09\u3002<\/li>\n<li><code>channels.whatsapp.accounts.&lt;accountId&gt;.ackReaction<\/code>\uff08\u6309\u8d26\u6237\u786e\u8ba4\u56de\u5e94\u8986\u76d6\uff09\u3002<\/li>\n<li><code>channels.whatsapp.groupAllowFrom<\/code>\uff08\u7fa4\u7ec4\u53d1\u9001\u8005\u5141\u8bb8\u5217\u8868\uff09\u3002<\/li>\n<li><code>channels.whatsapp.groupPolicy<\/code>\uff08\u7fa4\u7ec4\u7b56\u7565\uff09\u3002<\/li>\n<li><code>channels.whatsapp.historyLimit<\/code> \/ <code>channels.whatsapp.accounts.&lt;accountId&gt;.historyLimit<\/code>\uff08\u7fa4\u7ec4\u5386\u53f2\u4e0a\u4e0b\u6587\uff1b<code>0<\/code> \u7981\u7528\uff09\u3002<\/li>\n<li><code>channels.whatsapp.dmHistoryLimit<\/code>\uff08\u79c1\u4fe1\u5386\u53f2\u9650\u5236\uff0c\u6309\u7528\u6237\u8f6e\u6b21\uff09\u3002\u6309\u7528\u6237\u8986\u76d6\uff1a<code>channels.whatsapp.dms[\"&lt;phone&gt;\"].historyLimit<\/code>\u3002<\/li>\n<li><code>channels.whatsapp.groups<\/code>\uff08\u7fa4\u7ec4\u5141\u8bb8\u5217\u8868 + \u63d0\u53ca\u95e8\u63a7\u9ed8\u8ba4\u503c\uff1b\u4f7f\u7528 <code>\"*\"<\/code> \u5141\u8bb8\u5168\u90e8\uff09<\/li>\n<li><code>channels.whatsapp.actions.reactions<\/code>\uff08\u95e8\u63a7 WhatsApp \u5de5\u5177\u8868\u60c5\u56de\u5e94\uff09\u3002<\/li>\n<li><code>agents.list[].groupChat.mentionPatterns<\/code>\uff08\u6216 <code>messages.groupChat.mentionPatterns<\/code>\uff09<\/li>\n<li><code>messages.groupChat.historyLimit<\/code><\/li>\n<li><code>channels.whatsapp.messagePrefix<\/code>\uff08\u5165\u7ad9\u524d\u7f00\uff1b\u6309\u8d26\u6237\uff1a<code>channels.whatsapp.accounts.&lt;accountId&gt;.messagePrefix<\/code>\uff1b\u5df2\u5f03\u7528\uff1a<code>messages.messagePrefix<\/code>\uff09<\/li>\n<li><code>messages.responsePrefix<\/code>\uff08\u51fa\u7ad9\u524d\u7f00\uff09<\/li>\n<li><code>agents.defaults.mediaMaxMb<\/code><\/li>\n<li><code>agents.defaults.heartbeat.every<\/code><\/li>\n<li><code>agents.defaults.heartbeat.model<\/code>\uff08\u53ef\u9009\u8986\u76d6\uff09<\/li>\n<li><code>agents.defaults.heartbeat.target<\/code><\/li>\n<li><code>agents.defaults.heartbeat.to<\/code><\/li>\n<li><code>agents.defaults.heartbeat.session<\/code><\/li>\n<li><code>agents.list[].heartbeat.*<\/code>\uff08\u6309\u667a\u80fd\u4f53\u8986\u76d6\uff09<\/li>\n<li><code>session.*<\/code>\uff08scope\u3001idle\u3001store\u3001mainKey\uff09<\/li>\n<li><code>web.enabled<\/code>\uff08\u4e3a false \u65f6\u7981\u7528\u6e20\u9053\u542f\u52a8\uff09<\/li>\n<li><code>web.heartbeatSeconds<\/code><\/li>\n<li><code>web.reconnect.*<\/code><\/li>\n<\/ul>\n<h2>\u65e5\u5fd7 + \u6545\u969c\u6392\u9664<\/h2>\n<ul>\n<li>\u5b50\u7cfb\u7edf\uff1a<code>whatsapp\/inbound<\/code>\u3001<code>whatsapp\/outbound<\/code>\u3001<code>web-heartbeat<\/code>\u3001<code>web-reconnect<\/code>\u3002<\/li>\n<li>\u65e5\u5fd7\u6587\u4ef6\uff1a<code>\/tmp\/openclaw\/openclaw-YYYY-MM-DD.log<\/code>\uff08\u53ef\u914d\u7f6e\uff09\u3002<\/li>\n<li>\u6545\u969c\u6392\u9664\u6307\u5357\uff1a<a href=\"https:\/\/pa.yingzhi8.cn\/?p=144\">Gateway \u7f51\u5173 \u7f51\u5173\u6545\u969c\u6392\u9664<\/a>\u3002<\/li>\n<\/ul>\n<h2>\u6545\u969c\u6392\u9664\uff08\u5feb\u901f\uff09<\/h2>\n<p><strong>\u672a\u5173\u8054 \/ \u9700\u8981\u4e8c\u7ef4\u7801\u767b\u5f55<\/strong><\/p>\n<ul>\n<li>\u75c7\u72b6\uff1a<code>channels status<\/code> \u663e\u793a <code>linked: false<\/code> \u6216\u8b66\u544a&#8221;Not linked&#8221;\u3002<\/li>\n<li>\u4fee\u590d\uff1a\u5728 Gateway \u7f51\u5173 \u7f51\u5173\u4e3b\u673a\u4e0a\u8fd0\u884c <code>openclaw channels login<\/code> \u5e76\u626b\u63cf\u4e8c\u7ef4\u7801\uff08WhatsApp \u2192 \u8bbe\u7f6e \u2192 \u5173\u8054\u8bbe\u5907\uff09\u3002<\/li>\n<\/ul>\n<p><strong>\u5df2\u5173\u8054\u4f46\u65ad\u5f00\u8fde\u63a5 \/ \u91cd\u8fde\u5faa\u73af<\/strong><\/p>\n<ul>\n<li>\u75c7\u72b6\uff1a<code>channels status<\/code> \u663e\u793a <code>running, disconnected<\/code> \u6216\u8b66\u544a&#8221;Linked but disconnected&#8221;\u3002<\/li>\n<li>\u4fee\u590d\uff1a<code>openclaw doctor<\/code>\uff08\u6216\u91cd\u542f Gateway \u7f51\u5173 \u7f51\u5173\uff09\u3002\u5982\u679c\u95ee\u9898\u6301\u7eed\uff0c\u901a\u8fc7 <code>channels login<\/code> \u91cd\u65b0\u5173\u8054\u5e76\u68c0\u67e5 <code>openclaw logs --follow<\/code>\u3002<\/li>\n<\/ul>\n<p><strong>Bun \u8fd0\u884c\u65f6<\/strong><\/p>\n<ul>\n<li><strong>\u4e0d\u63a8\u8350<\/strong> Bun\u3002WhatsApp\uff08Baileys\uff09\u548c Telegram \u5728 Bun \u4e0a\u4e0d\u53ef\u9760\u3002<br \/>\n  \u8bf7\u4f7f\u7528 <strong>Node<\/strong> \u8fd0\u884c Gateway \u7f51\u5173 \u7f51\u5173\u3002\uff08\u53c2\u89c1\u5165\u95e8\u6307\u5357\u8fd0\u884c\u65f6\u8bf4\u660e\u3002\uff09<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>WhatsApp WhatsApp\uff08\u7f51\u9875\u6e20\u9053\uff09 \u72b6\u6001\uff1a\u4ec5\u652f\u6301\u901a\u8fc7 Baileys \u7684 WhatsApp Web [&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-41","post","type-post","status-publish","format-standard","hentry","category-docs"],"_links":{"self":[{"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/posts\/41","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=41"}],"version-history":[{"count":2,"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/posts\/41\/revisions"}],"predecessor-version":[{"id":859,"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/posts\/41\/revisions\/859"}],"wp:attachment":[{"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/media?parent=41"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/categories?post=41"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/tags?post=41"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}