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?
source share