'个人微信中主动发送信息send_message的修改'

This commit is contained in:
Dong_master
2025-02-26 02:54:42 +08:00
parent d659d01b1e
commit 133e48a5a9

View File

@@ -238,7 +238,15 @@ class GeWeChatAdapter(adapter.MessagePlatformAdapter):
target_id: str,
message: platform_message.MessageChain
):
pass
geweap_msg = await GewechatMessageConverter.yiri2target(message)
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'])
async def reply_message(
self,