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

不能通过群成员添加好友 #1578

Closed
zopxy opened this issue Aug 31, 2018 · 6 comments
Closed

不能通过群成员添加好友 #1578

zopxy opened this issue Aug 31, 2018 · 6 comments

Comments

@zopxy
Copy link

zopxy commented Aug 31, 2018

const memberList = await room.memberList()
for (let i = 0; i < memberList.length; i++) {
  await bot.Friendship.add(member, 'Nice to meet you! I am wechaty bot!')
}

看到bot.Friendship.add方法是使用了searchContact函数,获取v1,v2进行好友添加。

但是获取的群成员的wxid是wxid_开头的都搜索不到好友,只有wxid非wxid_开头的才可以正常添加。

经过测试,多数成员的wxid虽然是wxid_开头,但是他们有微信号, 通过微信号使用searchContact就可以正常添加。不知道bot.Friendship.add时能不能获取微信号呢?

@lijiarui
Copy link
Member

lijiarui commented Sep 3, 2018

  1. Yes, all contact begins with wxid_ cannot be added successfully, this is known.
  2. In the future, we may add a function to get real wechat id. but not sure whether can be searched by searchContact
  3. Please move this to https://github.com/lijiarui/wechaty-puppet-padchat because this is related to wechaty-puppet-padchat instead wechaty.

@lijiarui
Copy link
Member

@BoPro Do you have more question about this issue?

@lijiarui
Copy link
Member

lijiarui commented Nov 4, 2018

Close this issue due to long time no reply.

@lijiarui lijiarui closed this as completed Nov 4, 2018
@zhouyu1993
Copy link

zhouyu1993 commented Apr 6, 2019

Web - PuppetPuppeteer

bot.Friendship.add doesn't work. And contact begins without wxid_.

@cleverphp
Copy link

lijiarui,你是女的吗?好美啊,可以认识下吗?

@JarVZhao
Copy link

JarVZhao commented Jul 3, 2019

bot.Friendship.add doesn't work. And contact begins without wxid_.

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

5 participants