Skip to content

Your lightweight open-source personal agent.

bugfix: remove client.stop

zhangxiaoyu.york5d829ca57546
diff --git a/nanobot/channels/feishu.py b/nanobot/channels/feishu.py
index 4abac85e3..161d31e18 100644
--- a/nanobot/channels/feishu.py
+++ b/nanobot/channels/feishu.py
@@ -325,7 +325,13 @@ class FeishuChannel(BaseChannel):
await asyncio.sleep(1)
async def stop(self) -> None:
- """Stop the Feishu bot."""
+ """
+ Stop the Feishu bot.
+
+ Notice: lark.ws.Client does not expose stop method, simply exiting the program will close the client.
+
+ Reference: https://github.com/larksuite/oapi-sdk-python/blob/v2_main/lark_oapi/ws/client.py#L86
+ """
self._running = False
logger.info("Feishu bot stopped")