Closed kaihungc1993 closed 1 year ago
I also tested running the same code twice on two terminals. I guess if whatsapp-web.js only allows connecting to one account given 1 IP.
Are you sure you posted in the proper repository? This sounds like an issue for: https://github.com/wechaty/wechaty
Based on the error log, it looks like the error is related to @juzi\whatsapp-web.js\src\Client.js
.
I'm guessing that I can get more insights here. Thank you.
getContacts
is called on undefined, which implicates the client is undefined. How the client is created is rooted within the wechaty manager from what I can tell (not familiar with the wechaty package).
This is not related to the whatsapp-web.js repo but rather how the wrapper (wechaty / WECHATY PUPPET WHATSAPP) handles this.
whatsapp-web.js supports as many clients as you want if used properly.
Maybe your issue is rooted within using the same bot name bot
for each client. in whatsapp-webjs this would lead to an issue since the clients would store their session data in the same folder.
You're right. The wrapper is currently set using fixed LocalAuth. According to the documentation, it should support multi-session. Closing this ticket.
Is there an existing issue for this?
Describe the bug
I'm running a server to spin out a wechaty bot upon request.
Here's an example code:
Here's the error code when a second account logs in
I have tested using different accounts. i.e. account A then B has the same output as B then A
Expected behavior
Allow multiple bots created for multiple user.
Steps to Reproduce the Bug or Issue
Relevant Code
No response
Browser Type
Google Chrome
WhatsApp Account Type
Standard
Does your WhatsApp account have multidevice enabled?
No, I am not using Multi Device
Environment
Windows Android whatsapp-web.js 1.19.6
Additional context
No response