fix(gewechat): remove necessary await in send_message

This commit is contained in:
Junyan Qin
2025-03-10 15:16:10 +08:00
parent 441b69b528
commit b9500283ec

View File

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