From b9500283ec5af2c400cad99d3738dfde81157e1f Mon Sep 17 00:00:00 2001 From: Junyan Qin Date: Mon, 10 Mar 2025 15:16:10 +0800 Subject: [PATCH] fix(gewechat): remove necessary `await` in `send_message` --- pkg/platform/sources/gewechat.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/platform/sources/gewechat.py b/pkg/platform/sources/gewechat.py index f75b5c8d..1de2e3ef 100644 --- a/pkg/platform/sources/gewechat.py +++ b/pkg/platform/sources/gewechat.py @@ -261,11 +261,11 @@ class GeWeChatAdapter(adapter.MessagePlatformAdapter): for msg in geweap_msg: if msg['type'] == 'text': - await self.bot.post_text(app_id=self.config['app_id'], to_wxid=target_id, content=msg['content']) + self.bot.post_text(app_id=self.config['app_id'], to_wxid=target_id, content=msg['content']) elif msg['type'] == 'image': - await self.bot.post_image(app_id=self.config['app_id'], to_wxid=target_id, img_url=msg["image"]) + self.bot.post_image(app_id=self.config['app_id'], to_wxid=target_id, img_url=msg["image"])