0

我需要连接什么应用程序消息但是


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

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();
        }

我尝试带国家代码和不带国家代码的美孚号码。但没有回应

4

0 回答 0