wechaty / puppet-supports

Wechaty Puppet Services (WPS)
https://wechaty.js.org/docs/puppet-services/
Apache License 2.0
33 stars 4 forks source link

机器人登录后,其他人修改了群名称,message事件推送群消息时的群名称依然是旧群名 #119

Open streamDream opened 5 years ago

streamDream commented 5 years ago

你好! 重现步骤: 1.扫码登录成功; 2.在群中发送消息,message事件中room topic为 roomName1; 3.其他群成员修改群名称为roomName2; 4.在群中发送消息,message事件中room topic依然为 roomName1; [ Why ???]

OS: Ubuntu package信息: "cookie-parser": "~1.4.3", "debug": "^4.1.1", "express": "~4.16.0", "http-errors": "^1.7.1", "log4js": "^3.0.6", "pug": "^2.0.3", "querystring": "^0.2.0", "request": "^2.88.0", "uuid": "^3.3.2", "wechaty-puppet-puppeteer": "^0.14.1", "puppeteer": "1.11.0", "wechaty": "^0.22.1" 谢谢~~

hoo-ge commented 5 years ago

遇到了同样的问题,room.sync()后也无法更新wechaty的群名,必须重新扫描登录 image

hoo-ge commented 5 years ago

找个一个临时的解决方法,每次触发room-topic事件后,用room.say()发言,这样room.topic()获取的群名就变成新的了。

lijiarui commented 5 years ago

是的,这是一个很好的解决方案!

15335179243 commented 3 years ago

是的,这是一个很好的解决方案!

芮姐,这个问题现在有没有什么更好的解决方案