mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-06-09 15:26:03 +00:00
perf(gewechat): simplify
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user