mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-08-09 20:50:58 +00:00
Merge pull request #1130 from fdc310/master
'个人微信中主动发送信息send_message的修改'
This commit is contained in:
@@ -245,7 +245,11 @@ class GeWeChatAdapter(adapter.MessagePlatformAdapter):
|
|||||||
target_id: str,
|
target_id: str,
|
||||||
message: platform_message.MessageChain
|
message: platform_message.MessageChain
|
||||||
):
|
):
|
||||||
pass
|
geweap_msg = await GewechatMessageConverter.yiri2target(message)
|
||||||
|
|
||||||
|
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'])
|
||||||
|
|
||||||
async def reply_message(
|
async def reply_message(
|
||||||
self,
|
self,
|
||||||
|
|||||||
Reference in New Issue
Block a user