title: WhatsApp c# api "Login Failed" message
body: <p>i'm using c# api for whatsapp </p>
  
  <p>and when i attempt to send a message to any number , the message ""Login Failed" show up to me !! </p>
  
  <p>here's my code </p>
  
  <pre><code>  string to = textBox1.Text;
          string mes = richTextBox1.Text;
          string from = ******************";
          WhatsApp wa = new WhatsApp(from, Mypass, "56mmkjkjk", true, true);
  
          wa.OnConnectSuccess += () =&gt;
          { 
              Console.WriteLine("Connected");
              wa.OnLoginSuccess += (phoneNumber, data) =&gt;
              {
                  Console.WriteLine("Connection success!");
                  wa.SendMessage(to, "Hello World!");
                  Console.WriteLine("Message sent!");
              };
              wa.OnLoginFailed += (data) =&gt;
              {
                 MessageBox.Show("Login failed: {0}", data);
              };
             wa.Login();
          };
          wa.OnConnectFailed += (ex) =&gt;
          {
              Console.WriteLine("Connect failed: {0}", ex.StackTrace);
          };
          wa.Connect();
  
          Console.WriteLine("END");
          Console.ReadLine();
  </code></pre>