Whatsapp login error

I use this API to connect and send a message to Whatsapp. Here is the code.

byte[] nextChallenge = null; WhatsApp wa = new WhatsApp("91999999999", "your password(WART)", "Name", true, true); wa.OnConnectSuccess += () => { Response.Write("connect"); wa.OnLoginSuccess += (phno,data) => { wa.SendMessage("to", "msg"); }; wa.OnLoginFailed += (data) => { Response.Write("login failed "+data); }; wa.Login(nextChallenge); }; wa.OnConnectFailed+= (ex)=> { Response.Write("connection failed"); } wa.Connect(); 

I created a password with WART, but every time I run the code, I get an error

 Login Failed not- authorized 

What am I doing there?

+5
source share
1 answer

The Wart tool is now deprecated. In addition, whatsapp removed the concept of password. Now it uses a 2-step verification method. Unfortunately, a 2-step verification is in BETA status at the time of this writing.

0
source

Source: https://habr.com/ru/post/1236943/


All Articles