wechaty / puppet-wechat

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

群ID和好友ID优化建议 #208

Open choogoo opened 2 years ago

choogoo commented 2 years ago

微信真实的:

群ID格式为xxxx@chatroom 好友ID为wx_xxxxxx

wechaty-puppet-wechat默认生成的:

群ID格式为@81b071f07243dc37d4ac701675e25b636eb6ccfb19588941ce0b288e2d14482a 好友ID为@@402ba4bb66577b776b0a057f9fa2d0c4a86df3e0a4f3ec77e6509b7efd16d100

是否把wechaty-puppet-wechat生成的ID按微信实际格式兼容,例如:

群ID格式为wx_81b071f07243dc37d4ac701675e25b636eb6ccfb19588941ce0b288e2d14482a 好友ID为402ba4bb66577b776b0a057f9fa2d0c4a86df3e0a4f3ec77e6509b7efd16d100@chatroom

这样使用wechat时业务代码如果使用的好友ID和群ID格式方面验证时,可以有很好的兼容性

xinxinyihao commented 2 years ago

附议啊,太需要这个了。现在是每次重启都会变化

leochen-g commented 1 year ago

网页版微信本身就不提供唯一的id,所以这个功能无法实现的。puppet 只能够实现网页版微信本身的功能,并不能自创功能

codesopen commented 1 year ago

能否解决bot.Friendship.add 无效问题?