whatsapp c#使用WhatsAppApi进行Auth响应错误

时间:2017-01-11 09:22:38

标签: c# whatsapp whatsapi

我需要连接什么应用消息,但


我发现错误有困难无法确定

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号码,没有它。但没有反响

0 个答案:

没有答案