wechaty / puppet-wechat

Wechaty Puppet Provider for WeChat
https://www.npmjs.com/package/wechaty-puppet-wechat
Apache License 2.0
408 stars 68 forks source link

在群里@人取不到值 #141

Closed webdq closed 2 years ago

webdq commented 3 years ago

在群里@后,mentionSelf是false,mentionList是空数组

vfiee commented 3 years ago

在群里@后,mentionSelf是false,mentionList是空数组 wechaty-puppet-wechat协议不支持获取到mentionList,wechaty-puppet-padlocal协议支持 image

huan commented 3 years ago

Link to https://github.com/wechaty/wechaty/issues/1991

mtit commented 3 years ago

我用这个来判断是否@了我 = =

if (msg.text().indexOf(`@${userName} `) !== -1) 
// 在onLogin事件中记录当前用户名称
huan commented 3 years ago

After I have a check of the code, it seems that we are not supporting the mentionIdList now:

https://github.com/wechaty/wechaty-puppet-wechat/blob/9c7b34e18eb74b90b6d1f609c7a7873b398170ac/src/pure-function-helpers/message-raw-payload-parser.ts#L57-L65

Maybe the code has been lost when we refactoring the code before.

Should be reverted the old codes back, to be investigated, and PR is welcome.

Related Issues & PRs

huan commented 3 years ago

Should be fixed with wechaty-puppet-wechat@0.29.7 or above.

Please let me know if it works for you or not, thank you very much.

huan commented 2 years ago

I'll close this issue because it seems no feedback for bugs anymore.

Feel free to let me know if there's any problem.