Skip to content

Your lightweight open-source personal agent.

fix(wecom): await async disconnect, add SDK attribution in README

Re-bin7ceddcded643
diff --git a/README.md b/README.md
index 6e8211e65..2a49214d8 100644
--- a/README.md
+++ b/README.md
@@ -681,7 +681,9 @@ nanobot gateway
<details>
<summary><b>Wecom (企业微信)</b></summary>
-Uses **WebSocket** long connection — no public IP required.
+> Here we use [wecom-aibot-sdk-python](https://github.com/chengyongru/wecom_aibot_sdk) (community Python version of the official [@wecom/aibot-node-sdk](https://www.npmjs.com/package/@wecom/aibot-node-sdk)).
+>
+> Uses **WebSocket** long connection — no public IP required.
**1. Install the optional dependency**
@@ -714,9 +716,6 @@ Go to the WeCom admin console → Intelligent Robot → Create Robot → select
nanobot gateway
```
-> [!TIP]
-> WeCom uses WebSocket to receive messages — no webhook or public IP needed!
-
</details>
## 🌐 Agent Social Network
diff --git a/nanobot/channels/wecom.py b/nanobot/channels/wecom.py
index 1c4445130..72be9e2fa 100644
--- a/nanobot/channels/wecom.py
+++ b/nanobot/channels/wecom.py
@@ -98,7 +98,7 @@ class WecomChannel(BaseChannel):
"""Stop the WeCom bot."""
self._running = False
if self._client:
- self._client.disconnect()
+ await self._client.disconnect()
logger.info("WeCom bot stopped")
async def _on_connected(self, frame: Any) -> None: