Wechaty: How to get contacts list of the bot ?

Created on 12 Jan 2017  路  4Comments  路  Source: wechaty/wechaty

title tells all.

question

Most helpful comment

yep, you are right, I just added in the wiki:

what's more, wechaty can find contact by remark and name, learn more in the wiki:

https://github.com/wechaty/wechaty/wiki/API#contact-query-type

All 4 comments

const contactList = await Contact.findAll()

learn more from the example: contact-bot

@lijiarui thank you very much, but, to be honest, such a useful method should be displayed in project's wiki, so we can not miss.

yep, you are right, I just added in the wiki:

what's more, wechaty can find contact by remark and name, learn more in the wiki:

https://github.com/wechaty/wechaty/wiki/API#contact-query-type

@lijiarui thank you very much.

Was this page helpful?
0 / 5 - 0 ratings