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

How to get the user's wechat account(微信号)? #1307

Closed
3014zhangshuo opened this Issue Jun 11, 2018 · 5 comments

Comments

Projects
None yet
4 participants
@3014zhangshuo
Copy link

3014zhangshuo commented Jun 11, 2018

I try to get use wexin() method, but got null. Is there a way to get a wechat account?

.on('message', async message => {
  console.log(`RECV: ${message}`)
  const wx_user = message.from()
  console.log(wx_user.weixin()) => null
})
@huan

This comment has been minimized.

Copy link
Member

huan commented Jun 11, 2018

You can not get wexin id for a contact if you are using the Web API(like PuppetPuppeteer, or PuppetWechat4u).

You can get wexin id if you use a stronger Puppets, like PuppetPadchat.

Learn more at: #1296

@huan huan added the question label Jun 11, 2018

@3014zhangshuo

This comment has been minimized.

Copy link
Author

3014zhangshuo commented Jun 12, 2018

I will try it. Thank you for your answer.

@huan

This comment has been minimized.

Copy link
Member

huan commented Jun 12, 2018

Could you please close this issue?

@radishyell

This comment has been minimized.

Copy link

radishyell commented Jun 14, 2018

@3014zhangshuo 你获取到微信号了么?PuppetPadchat 这个是不是在 0.15的版本才有支持?

@lijiarui

This comment has been minimized.

Copy link
Member

lijiarui commented Nov 26, 2018

@radishyell PuppetPadchat 将会在新版本支持获取微信号: #1647

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment