wechaty / python-wechaty

Python Wechaty is a Conversational RPA SDK for Chatbot Makers written in Python
https://wechaty.readthedocs.io/zh_CN/latest/
Apache License 2.0
1.55k stars 229 forks source link

[Bug]: Concact的say方法mention_ids无效的解决方案 #402

Open Wangzehong111 opened 1 year ago

Wangzehong111 commented 1 year ago

Environment

- wechaty:
- wechaty-puppet: 
- wechaty-puppet-service: 
- wechaty-plugin-contrib: 
- token type: padlocal|wxwork|xp
- the version of wechaty docker container: [0.65]

Description

Message.say()传入mention_ids后并不生效,一样遇到这个问题的朋友可以看一下解决方案

Minimum reproducible code

contact = message.talker()
        room = message.room()
        await room.say('?', mention_ids=[contact.contact_id])

这是OK的

await message.say('?', mention_ids=[message.contact_id])

这个就不生效,message都是来自群聊,say方法也都能直接往群里发送消息,唯一区别就是第一段的能够成功mention