perf(gewechat): simplify

This commit is contained in:
Junyan Qin
2025-02-26 15:53:26 +08:00
parent 133e48a5a9
commit 998ad7623c

View File

@@ -242,11 +242,7 @@ class GeWeChatAdapter(adapter.MessagePlatformAdapter):
for msg in geweap_msg:
if msg['type'] == 'text':
if target_type == "group":
await self.bot.post_text(app_id=self.config['app_id'], to_wxid=target_id,content=msg['content'])
elif target_type == "person":
await self.bot.post_text(app_id=self.config['app_id'], to_wxid=target_id,content=msg['content'])
await self.bot.post_text(app_id=self.config['app_id'], to_wxid=target_id,content=msg['content'])
async def reply_message(
self,