salman0ansari / whatsapp-api-nodejs

RESTful WhatsApp API with Multiple Device Support
GNU General Public License v3.0
1.27k stars 605 forks source link

Login with phoneNumber #816

Open Jean1dev opened 10 months ago

Jean1dev commented 10 months ago

In this PR a implemented 2 new features in Whatsapp Istance, now you can login with your mobile number and you can verify your whatsapp number with sms message

salman0ansari commented 10 months ago

thank you for contributing I'll merge it after test

diorgenesgrzesiuk commented 10 months ago

In this PR a implemented 2 new features in Whatsapp Istance, now you can login with your mobile number and you can verify your whatsapp number with sms message

I tried to use your implementation but I couldn't... it doesn't connect... it says that the letter and number code is invalid...

xadminx commented 10 months ago

Return error {"level":50,"time":1697839215513,"pid":4092,"hostname":"DESKTOP","err":{"type":"TypeError","message":"Cannot read properties of undefined (reading 'phoneNumberCountryCode')","stack":"TypeError: Cannot read properties of undefined (reading 'phoneNumberCountryCode')\n at generateMobileNode (\var\dev\whatsapp-api-nodejs\node_modules\@whiskeysockets\baileys\lib\Utils\validate-connection.js:63:60)\n at validateConnection (\var\dev\whatsapp-api-nodejs\node_modules\@whiskeysockets\baileys\lib\Socket\socket.js:158:51)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async MobileSocketClient. (\var\dev\whatsapp-api-nodejs\node_modules\@whiskeysockets\baileys\lib\Socket\socket.js:429:13)"},"msg":"error in validating connection"} after request http://localhost:3333/instance/init