i have to get
Auth response error
What I have tried:
string from = "91xxxxxxxxxx";
string to = txtmobile.Text;//Sender Mobile
string msg = "Hello How are u??";//txtmessage.Text;
WhatsApp wa = new WhatsApp(from, "mypasword=", "myname", false,false);
wa.OnConnectSuccess += () =>
{
Response.Write("connect");
wa.OnLoginSuccess += (phoneNumber, data) =>
{
wa.SendMessage(to, msg);
Response.Write("Message Sent...");
};
wa.OnLoginFailed += (data) =>
{
Response.Write("login failed" + data);
};
wa.Login();
};
wa.OnConnectFailed += (ex) =>
{
Response.Write("connection failed");
};
wa.Connect();