我需要连接什么应用消息,但
string from = "+965********"; //( )
string to = txt_To.Text; // Mobile Number(+2011104******)
string msg = txt_Message.Text;
WhatsAppApi.WhatsApp wa = new WhatsAppApi.WhatsApp(from, "1RTy***************=", "yahia", false, false);
wa.OnConnectSuccess += () =>
{
MessageBox.Show("Connected to WhatsApp...");
wa.OnLoginSuccess += (phonenumber, data) =>
{
wa.SendMessage(to, msg);
MessageBox.Show("Message Sent...");
};
wa.OnLoginFailed += (data) =>
{
MessageBox.Show("Login Failed : {0} : ", data);
};
try
{
wa.Login();
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
};
wa.OnConnectFailed += (ex) =>
{
MessageBox.Show("Connection Failed...");
};
wa.Connect();
}
我尝试使用国家代码的Mobil号码,没有它。但没有反响