Failed to send message via whatsapp API using asp.net mvc3
when i try to send message using c # with whatsApp API,
it shows login with error. The error is not resolved. Please help me. Thanks in advance.
code:
WhatsApp wa = new WhatsApp(from, "mypassword", "Rajat", false, false);
wa.OnConnectSuccess += () =>
{
TempData["connect"] = "Connected to whatsapp";
wa.OnLoginSuccess += (PhoneNumber, data) =>
{
wa.SendMessage(to, msg);
TempData["sent"] = "Message Sent";
};
wa.OnLoginFailed += (data) =>
{
TempData["fail"] = data;
};
wa.Login();
};
wa.OnConnectFailed += (ex) =>
{
TempData["failure"] = "Connection Failed";
};
wa.Connect();
return View();
+3
source to share
No one has answered this question yet
Check out similar questions: