mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-09-03 08:07:14 +00:00
perf(gewechat): simplify
This commit is contained in:
@@ -242,11 +242,7 @@ class GeWeChatAdapter(adapter.MessagePlatformAdapter):
|
|||||||
|
|
||||||
for msg in geweap_msg:
|
for msg in geweap_msg:
|
||||||
if msg['type'] == 'text':
|
if msg['type'] == 'text':
|
||||||
|
await self.bot.post_text(app_id=self.config['app_id'], to_wxid=target_id,content=msg['content'])
|
||||||
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'])
|
|
||||||
|
|
||||||
async def reply_message(
|
async def reply_message(
|
||||||
self,
|
self,
|
||||||
|
|||||||
Reference in New Issue
Block a user