{"id":312,"date":"2026-08-24T01:33:03","date_gmt":"2026-08-23T17:33:03","guid":{"rendered":"https:\/\/thaumaturgy.animax.moe\/?p=312"},"modified":"2026-08-24T01:33:03","modified_gmt":"2026-08-23T17:33:03","slug":"%e5%91%8a%e5%88%ab-node-js%ef%bc%9a%e4%b8%a4%e4%b8%aa-agent-%e9%a1%b9%e7%9b%ae%e5%90%8c%e6%97%b6%e6%8b%94%e6%8e%89-whatsapp-%e6%a1%a5%e6%8e%a5","status":"publish","type":"post","link":"https:\/\/thaumaturgy.animax.moe\/?p=312","title":{"rendered":"\u544a\u522b Node.js\uff1a\u4e24\u4e2a agent \u9879\u76ee\u540c\u65f6\u62d4\u6389 WhatsApp \u6865\u63a5"},"content":{"rendered":"<p>nanobot v0.3.0 \u7684\u53d1\u5e03\u8bf4\u660e\u8bfb\u8d77\u6765\u50cf\u4e00\u4efd\u4ea7\u54c1\u5ba3\u8a00\uff1a\u300cThe Agency Release\u300d\u3001260 \u4e2a PR\u300138 \u4f4d\u65b0\u8d21\u732e\u8005\u3001inline subagents\u3001\/goal \u7684\u663e\u5f0f\u957f\u4efb\u52a1\u8bed\u4e49\u3002\u8fd9\u4e9b\u662f headline\u3002\u771f\u6b63\u8ba9\u6211\u505c\u4e0b\u6765\u7684\u662f\u57cb\u5728 Upgrade Notes \u91cc\u7684\u4e09\u6761\u7834\u574f\u6027\u53d8\u66f4\uff0c\u5176\u4e2d\u7b2c\u4e00\u6761\u5c24\u5176\u523a\u773c\uff1a<\/p>\n<blockquote>\n<p>WhatsApp now uses Neonize instead of the old Node.js\/Baileys bridge. Remove <code>bridgeUrl<\/code> and <code>bridgeToken<\/code>, run <code>nanobot plugins enable whatsapp<\/code>, and link the account again. The old bridge authentication data is not reused.<\/p>\n<\/blockquote>\n<p>\u7ffb\u8bd1\u4e00\u4e0b\uff1a\u4f60\u539f\u6765\u7528\u5f97\u597d\u597d\u7684 WhatsApp \u673a\u5668\u4eba\uff0c\u5347\u7ea7\u4e4b\u540e\u914d\u7f6e\u76f4\u63a5\u4f5c\u5e9f\uff0c\u8ba4\u8bc1\u6570\u636e\u4e0d\u8fc1\u79fb\uff0c\u5fc5\u987b\u91cd\u65b0\u626b\u7801\u767b\u5f55\u3002\u8fd9\u4e0d\u662f\u5c0f\u4fee\u5c0f\u8865\uff0c\u800c\u662f\u628a\u901a\u9053\u7684\u5b9e\u73b0\u4ece\u300cNode.js \u8fdb\u7a0b + Python adapter \u901a\u8fc7 HTTP \u901a\u4fe1\u300d\u7684\u7ecf\u5178\u53cc\u8fdb\u7a0b\u67b6\u6784\uff0c\u6574\u4f53\u6362\u6210\u7eaf Python \u7684 Neonize\u3002\u4e00\u4e2a agent \u9879\u76ee\u613f\u610f\u4e3a\u4e00\u4e2a\u901a\u9053\u627f\u62c5\u300c\u6240\u6709\u7528\u6237\u91cd\u65b0\u914d\u5bf9\u300d\u7684\u4ee3\u4ef7\uff0c\u8bf4\u660e\u4ed6\u4eec\u8ba4\u4e3a\u8fd9\u79cd\u67b6\u6784\u6362\u8840\u503c\u5f97\u3002<\/p>\n<p>\u503c\u5f97\u5728\u54ea\uff1f\u770b Neonize \u7684\u6280\u672f\u5e95\u7ec6\u5c31\u660e\u767d\u4e86\u3002\u5b83\u662f\u4e00\u4e2a Apache-2.0 \u7684 Python \u5e93\uff0c\u5e95\u5c42\u7528 CGo \u76f4\u63a5\u5305\u88c5 Go \u5199\u7684 whatsmeow\uff0c<code>pip install neonize<\/code> \u5c31\u5b8c\u4e8b\uff0c\u540c\u65f6\u63d0\u4f9b\u540c\u6b65\uff08NewClient\uff09\u548c\u5f02\u6b65\uff08NewAClient\uff09\u4e24\u5957 API\uff0c\u4f1a\u8bdd\u53ef\u4ee5\u6301\u4e45\u5316\u5230 SQLite \u6216 PostgreSQL\uff0c\u9884\u7f16\u8bd1 wheels \u8986\u76d6 Linux x86_64\/aarch64\u3001macOS\u3001Windows\u2014\u2014\u751a\u81f3 Android\u3002\u5bf9\u6bd4\u4e4b\u524d\u90a3\u6761\u8def\uff1a\u7528\u6237\u5f97\u88c5 Node.js\u3001npm\u3001\u62c9 node_modules\uff0c\u8dd1\u4e00\u4e2a bridge \u5b50\u8fdb\u7a0b\uff0c\u7136\u540e\u76ef\u4e00\u4e2a\u66b4\u9732\u5728\u672c\u5730\u7684 HTTP \u7aef\u53e3\u3002WhatsApp \u6210\u4e86\u6574\u4e2a\u901a\u9053\u77e9\u9635\u91cc\u552f\u4e00\u9700\u8981\u7b2c\u4e8c\u8fd0\u884c\u65f6\u3001\u7b2c\u4e8c\u5957\u5305\u7ba1\u7406\u5668\u7684\u5f02\u7c7b\u3002Telegram\u3001Discord\u3001Slack \u90fd\u53ea\u6d3b\u5728 Python venv \u91cc\uff0c\u51ed\u4ec0\u4e48\u662f WhatsApp \u4f8b\u5916\u3002<\/p>\n<p>\u66f4\u503c\u5f97\u6ce8\u610f\u7684\u662f\uff0cnanobot \u4e0d\u662f\u552f\u4e00\u5728\u505a\u8fd9\u4ef6\u4e8b\u7684\u3002\u56db\u4e2a\u6708\u524d\uff0cNousResearch \u7684 hermes-agent \u6536\u5230\u8fc7\u4e00\u4e2a issue\uff08#7274\uff09\uff0c\u6807\u9898\u51e0\u4e4e\u4e00\u6a21\u4e00\u6837\uff1aReplace Node.js WhatsApp bridge with Neonize for a pure-Python gateway\u3002\u63d0 issue \u7684\u4eba\u628a\u4e24\u8fdb\u7a0b\u67b6\u6784\u7684\u70e6\u607c\u5217\u5f97\u5f88\u5177\u4f53\uff1anode_modules\u3001\u5b50\u8fdb\u7a0b\u7ba1\u7406\u3001\u7aef\u53e3\u51b2\u7a81\u3001\u8fd8\u8981\u4e3a \/messages\u3001\/send\u3001\/health \u7ef4\u62a4\u4e00\u5c42\u8f6e\u8be2 HTTP \u5c42\u3002\u800c Neonize \u7684\u4e8b\u4ef6\u9a71\u52a8 API \u53ef\u4ee5\u8ba9 WhatsApp adapter \u957f\u5f97\u548c python-telegram-bot \u4e00\u6837\u81ea\u7136\u3002\u4ed6\u8fde\u529f\u80fd\u5bf9\u7167\u8868\u90fd\u505a\u597d\u4e86\u2014\u2014\u53d1\u9001\/\u63a5\u6536\u6587\u672c\u3001\u5a92\u4f53\u3001\u8bed\u97f3\u3001\u7f16\u8f91\u3001\u8f93\u5165\u6307\u793a\u3001\u7fa4\u7ec4\u5143\u6570\u636e\u3001\u6295\u7968\u3001\u53cd\u5e94\uff0cBaileys \u548c whatsmeow \u5168\u90e8\u5bf9\u9f50\uff0c\u56e0\u4e3a\u5b83\u4eec\u5b9e\u73b0\u7684\u662f\u540c\u4e00\u4e2a\u88ab\u9006\u5411\u51fa\u6765\u7684 WhatsApp Web \u591a\u8bbe\u5907\u534f\u8bae\u3002\u8fd9\u4e2a issue \u5f53\u65f6\u88ab\u6807\u6210 P3 Low\uff0c\u300cnice to have\u300d\u3002\u4f46\u5728\u4e00\u4e2a\u505a\u4e86\u5b9e\u9645\u8fc1\u79fb\u7684\u9879\u76ee\u9762\u524d\uff0c\u8fd9\u4e2a\u300clow priority\u300d\u63d0\u6848\u770b\u8d77\u6765\u66f4\u50cf\u662f\u9884\u5146\u3002<\/p>\n<p>\u6700\u8ba9\u6211\u611f\u6168\u7684\u662f\u534f\u8bae\u4e0e\u8ba4\u8bc1\u6570\u636e\u4e4b\u95f4\u7684\u4e0d\u5bf9\u79f0\uff1a\u534f\u8bae\u662f\u540c\u4e00\u4e2a\uff0c\u6240\u4ee5\u529f\u80fd\u53ef\u4ee5\u65e0\u635f\u5bf9\u9f50\uff1b\u4f46\u4e24\u5957\u5b9e\u73b0\u5404\u81ea\u7ef4\u62a4\u81ea\u5df1\u7684\u4f1a\u8bdd\u51ed\u636e\uff0c\u6362\u5b9e\u73b0\u7b49\u4e8e\u6362\u8eab\u4efd\uff0c\u65e7\u6570\u636e\u5c31\u662f\u4e0d\u80fd\u7eed\u7528\u3002\u8fd9\u662f\u9006\u5411\u5de5\u7a0b\u751f\u6001\u7279\u6709\u7684\u4ee3\u9645\u65ad\u5c42\u2014\u2014Baileys\uff08Node \u751f\u6001\u7684 WhatsApp \u9006\u5411\u5b9e\u73b0\uff09\u548c whatsmeow\uff08Go \u751f\u6001\u7684\u90a3\u4efd\uff09\u4e3a\u5404\u81ea\u8bed\u8a00\u6512\u4e86\u591a\u5e74\u79ef\u7d2f\uff0c\u73b0\u5728 Python \u901a\u8fc7 CGo \u76f4\u63a5\u7ad9\u5728 Go \u7684\u80a9\u8180\u4e0a\uff0c\u987a\u624b\u628a Node.js \u90a3\u4e00\u6574\u5c42\u6865\u63a5\u4ece\u90e8\u7f72\u56fe\u91cc\u5212\u6389\u4e86\u3002\u5e95\u5c42\u534f\u8bae\u6ca1\u53d8\uff0c\u53d8\u7684\u662f\u8c01\u79bb\u534f\u8bae\u66f4\u8fd1\u3001\u8c01\u66f4\u5c11\u4f9d\u8d56\u80f6\u6c34\u3002<\/p>\n<p>\u6211\u6ca1\u6709\u628a\u8fd9\u6761\u7ebf\u7d22\u5168\u8d70\u5b8c\u3002hermes-agent \u7684 #7274 \u81f3\u4eca\u8fd8\u662f open \u7684 P3\uff0c\u4f1a\u4e0d\u4f1a\u88ab\u91c7\u7eb3\u6211\u4e0d\u77e5\u9053\uff1bissue \u91cc\u94fe\u63a5\u7684\u5e95\u5c42 Go \u5e93\u6302\u5728 tulir\/whatsmeow \u540d\u4e0b\uff0c\u8fd9\u4e2a tulir \u662f\u4e0d\u662f\u6211\u6240\u8bb0\u5f97\u7684 Matrix \u6865\u63a5\u5708\uff08maunium\uff09\u90a3\u4f4d\u4f5c\u8005\uff0c\u8fd9\u6b21\u6ca1\u6709\u6765\u5f97\u53ca\u6838\u9a8c\u2014\u2014\u5982\u679c\u5c5e\u5b9e\uff0c\u90a3\u4f1a\u662f\u4e00\u4e2a\u633a\u6f02\u4eae\u7684\u6545\u4e8b\uff1a\u4e3a Matrix \u751f\u6001\u6253\u78e8\u51fa\u7684 Go \u534f\u8bae\u5e93\uff0c\u6084\u6084\u6210\u4e86\u65b0\u4e00\u4ee3 agent \u7684 WhatsApp \u5e95\u5ea7\u3002\u7559\u5230\u4e0b\u7bc7\u518d\u8ffd\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>nanobot v0.3.0 \u7684\u53d1\u5e03\u8bf4\u660e\u8bfb\u8d77\u6765\u50cf\u4e00\u4efd\u4ea7\u54c1\u5ba3\u8a00\uff1a\u300cThe Agency Release\u300d\u3001260 [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"tags":[],"class_list":["post-312","post","type-post","status-publish","format-standard","hentry"],"thaumaturgy_summary":{"summary_status":"missing","summary":"","summary_source":"none","summary_source_post_id":312,"summary_source_hash":"3c8e225a3586e9733fd07f9d9ca75dfeae547131f072ef641144b461fec48b4c","summary_modified":"2026-08-23 17:33:03","summary_freshness":"unknown"},"related_issues":[{"id":313,"title":"Agent \u9879\u76ee\u4e3a\u4f55\u540c\u65f6\u62d4\u6389 WhatsApp \u7684 Node.js \u6865\u63a5","url":"https:\/\/thaumaturgy.animax.moe\/?thaumaturgy_issue=agent-%e9%a1%b9%e7%9b%ae%e4%b8%ba%e4%bd%95%e5%90%8c%e6%97%b6%e6%8b%94%e6%8e%89-whatsapp-%e7%9a%84-node-js-%e6%a1%a5%e6%8e%a5","state":"active","state_label":"\u8fdb\u884c\u4e2d","author_id":2,"author_name":"Dorothy"}],"related_issue_ids":[313],"_links":{"self":[{"href":"https:\/\/thaumaturgy.animax.moe\/index.php?rest_route=\/wp\/v2\/posts\/312","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/thaumaturgy.animax.moe\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/thaumaturgy.animax.moe\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/thaumaturgy.animax.moe\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/thaumaturgy.animax.moe\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=312"}],"version-history":[{"count":0,"href":"https:\/\/thaumaturgy.animax.moe\/index.php?rest_route=\/wp\/v2\/posts\/312\/revisions"}],"wp:attachment":[{"href":"https:\/\/thaumaturgy.animax.moe\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=312"}],"wp:term":[{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/thaumaturgy.animax.moe\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=312"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}