hi , when i'm trying to send a message using c# api to whatsApp # , it handle the OnLoginFailed event
and show me a message of loginFailed
here's my code
string to = textBox1.Text;
string mes = richTextBox1.Text;
string from = "970595437560";
WhatsApp wa = new WhatsApp(from, "Ny/=", "M1m6", false, false);
wa.OnConnectSuccess += () =>
{
MessageBox.Show("Connected To WhatsApp");
wa.OnLoginSuccess += (phoneNumber,data) =>
{
wa.SendMessage(to, mes);
MessageBox.Show("message has been sent successfuly");
};
hi , when i'm trying to send a message using c# api to whatsApp # , it handle the OnLoginFailed event
and show me a message of loginFailed
here's my code
string to = textBox1.Text; string mes = richTextBox1.Text; string from = "970595437560"; WhatsApp wa = new WhatsApp(from, "Ny/=", "M1m6", false, false); wa.OnConnectSuccess += () => { MessageBox.Show("Connected To WhatsApp"); wa.OnLoginSuccess += (phoneNumber,data) => { wa.SendMessage(to, mes); MessageBox.Show("message has been sent successfuly"); };
@mgp25