Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
choogoo opened this issue Jul 18, 2022 · 3 comments
Open

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

choogoo opened this issue Jul 18, 2022 · 3 comments

Comments

@choogoo
Copy link

choogoo commented Jul 18, 2022

微信真实的:

群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
Copy link

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

@leochen-g
Copy link
Contributor

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

@codesopen
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants