bugfix: remove client.stop

This commit is contained in:
zhangxiaoyu.york
2026-03-01 00:30:03 +08:00
parent b3af59fc8e
commit 5d829ca575

View File

@@ -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")