WhatsAppApi.WhatsApp wa = new WhatsAppApi.WhatsApp("fromnumber", "mynumberpassword", "NickName", false, false); wa.OnConnectSuccess += () => { Console.WriteLine("Connected successfully"); wa.OnLoginSuccess += (phoneNumber, data) => { wa.SendMessage("toNumber", "Test Message"); Console.WriteLine("Send Successfully"); }; wa.OnLoginFailed += (data) => { Console.WriteLine("Login Failed " +data); }; wa.Login(); }; wa.OnConnectFailed += (ex) => { Console.WriteLine("Connection Failed"); }; wa.Connect(); Console.ReadLine();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)