Use phone number instead of scan qr code
Is there an existing issue for this?
- [X] I have searched the existing issues
Is your feature request related to a problem? Please describe.
every time I scanned the Qr code and use the bot... But this is sometimes not correctly working.
Describe the solution you'd like.
Once I give the phone number manually, the bot will assign the phone number without scan the qr code
Describe an alternate solution.
Once give the phone number manually/ dynamically, the bot will assign the phone number without scan the qr code
Additional context
No response
how would you login only with the number? what would happen if you put another person's number?
You can't. It's as simple as that. This just runs WhatsApp Web headless, so it can only use a QR code to log in.
You can save the session for each number after reading the QR-Code for the first time, then write a code that uses the session for the number that you specify.
You can save the session for each number after reading the QR-Code for the first time, then write a code that uses the session for the number that you specify.
Do you know how to save it?
const client = new Client({ authStrategy: new LocalAuth({clientId:"NAME_SESSION"}) });
After synchronizing the qrcode session don't forget to assign the same name as the session(code).
#2363