I expected it to show a list of all whatsapp contacts on my phone.
5. Actual behavior
The bot showed ) contacts. However I have a few contacts on my phone.
6. Full Output Logs
Set env WECHATY_LOG=silly in order to set log level to silly, then we can get the full log (If you dosen't set log env, log level is info as default, we cannot get the full log)
We need full log instead of log screenshot or log fragments!
```shell
$ WECHATY_LOG=silly node yourbot.js
Question: Paste your FULL(DO NOT ONLY PROVIDE FRAGMENTS) log messages
Answer:
17:42:59 VERB MemoryCard set(PUPPET_WHATSAPP, [object Object])
17:42:59 VERB MemoryCard <> save() to N/A
17:42:59 VERB MemoryCard save() no storage, NOOP
17:42:59 SILL StateSwitch on() is pending
17:42:59 VERB StateSwitch on(true) <- (pending)
17:42:59 VERB PuppetWhatsApp start() whatsapp.initialize() done
17:42:59 VERB Contact load(***********@c.us) init pool
17:42:59 SILL Contact constructor(**********@c.us)
17:42:59 SILL Contact ready() @ Puppet#0() with id="917018161701@c.us"
17:42:59 SILL Puppet contactPayload(917018161701@c.us) cache MISS
17:42:59 VERB PuppetWhatsApp contactRawPayload(917018161701@c.us)
17:43:00 SILL Puppet contactPayload(917018161701@c.us) cache SET
Contact<917018161701@c.us> login
17:43:00 VERB Contact findAll()
17:43:00 VERB Puppet contactSearch(query=undefined, )
17:43:00 VERB PuppetWhatsApp contactList()
17:43:00 SILL Puppet contactSearch() searchIdList.length = 0
17:43:00 INFO Bot #######################
17:43:00 INFO Bot Contact number: 0
7. Additional context
Note : I have relaced my phone number with **.
[bug]
0. Report Issue Guide
Please run the following command and check whether the problem has been fixed:
Please search in FAQ List first, and make sure your problem has not been solved before.
Please search in the issue first, and make sure your problem had not been reported before
1. Versions
What is your wechaty version? Answer: 0.11.4
Which puppet are you using for wechaty? (padchat/puppeteer/padpro/...) Answer: wechaty-puppet-whatsapp
What is your wechaty-puppet-XXX(padchat/puppeteer/) version? Answer: -
What is your node version? (run
node --version
) Answer:14.17.0What os are you using Answer: Linux
2. Describe the bug
The contact-bot is not showing desired Results. I have around 200 contacts on my phone yet it always displays BOT contact number 0 as an output.
3. To Reproduce
This part is very important: if you can not provide any reproduce steps, then the problem will be very hard to be recognised.
Steps to reproduce the behaviour:
https://github.com/wechaty/wechaty-getting-started
2.npm install 3.npm install4. Expected behaviour
I expected it to show a list of all whatsapp contacts on my phone.
5. Actual behavior
6. Full Output Logs
Set env
WECHATY_LOG=silly
in order to set log level to silly, then we can get the full log (If you dosen't set log env, log level is info as default, we cannot get the full log)We need full log instead of log screenshot or log fragments!
7. Additional context
Note : I have relaced my phone number with **. [bug]