WhatsApp wa = new WhatsApp("91********", "Your Password", "pankaj", true);
wa.OnConnectSuccess += () =>
{
MessageBox.Show("connect");
wa.OnLoginSuccess += (phno, data) =>
{ wa.SendMessage("91********", "msg");
};
wa.OnLoginFailed += (data) =>
{
MessageBox.Show("login failed" + data);
}
; wa.Login();
};
wa.OnConnectFailed += (ex) =>
{
MessageBox.Show("connection failed");
}; wa.Connect();
wa.OnConnectSuccess += () =>
{
MessageBox.Show("connect");
wa.OnLoginSuccess += (phno, data) =>
{ wa.SendMessage("91********", "msg");
};
wa.OnLoginFailed += (data) =>
{
MessageBox.Show("login failed" + data);
}
; wa.Login();
};
wa.OnConnectFailed += (ex) =>
{
MessageBox.Show("connection failed");
}; wa.Connect();
7 Comments
This comment has been removed by the author.
ReplyDeleteThis comment has been removed by the author.
ReplyDeleteThis comment has been removed by the author.
DeleteIf possible pls post VB.Net version....
ReplyDeleteDll issue are occuring when c# to vb converting.
DeleteHello Bhavdip tala..
ReplyDeleteI am getting Login failed..
How to fix this Bug???
Please help..
Tala
ReplyDeleteFrom where can I find new whatsappapi.dll
thank you