MobCode100 / whatsapp-web.js

whatsapp-web.js + link with phone number. See https://t.ly/KWR4p.
https://wwebjs.dev
Apache License 2.0
2 stars 4 forks source link

What's app auto apply regional phone code #3

Closed Rasket closed 3 months ago

Rasket commented 3 months ago

Is there an existing issue for this?

Describe the bug

If you try to use link with code what's app will auto apply your country code in textbox with phone enter. So it will broke your phone (if it's not from same country) As you can see on image it add 7 at start image

I try to fix this by adding geo and lang info in puppeteer, but it won't help


        '--lang=id-ID', // Установка языка на индонезийский
       '--geolocation=6.2088,106.8456' // Установка геолокации на Индонезию (Координаты Джакарты)

Expected behavior

Phone will pass

Steps to Reproduce the Bug or Issue

Try to register with phone not from your counter

Relevant Code

No response

Browser Type

Chromium

WhatsApp Account Type

Standard

Does your WhatsApp account have multidevice enabled?

Yes, I am using Multi Device

Environment

Chromium

Additional context

No response

Rasket commented 3 months ago

UPD: wa checks your ip to use your phone country code, so for now i fix it by using proxy

MobCode100 commented 3 months ago

Hi, sorry for the late response. I've fixed this problem, so there would be no need for proxy server. Thanks for this issue and your continuing support!