title: send whatsapp messages using WhatsappAPI in c#
body: <p>I have installed <strong>WhatsappAPI</strong> from NuGet package manager and tried to implement code but could not register my mobile number through WART (WhatsApp Registration Tool).Its giving error LIKE <code>{Status:&quot;Failed&quot;,Reason:&quot;Bad_Request&quot;}</code> all the time.
  I have searched a lot.But there is no any solution to this issue.
  There is only tool i.e. WART for registration.
  Is there any new updates OR WART is still working..??</p>
  <p>My code is given below.</p>
  <pre><code>  public JsonResult SendMessage(string sendTo,string message)
      {
          var response = false;
          string from = &quot;91XXXXXXXXXX&quot;; //(Enter Your Mobile Number)
          String password;
          var res = WhatsAppApi.Register.WhatsRegisterV2.RequestCode(from, out password);
          WhatsApp wa = new WhatsApp(from, password, &quot;abc.com&quot;, false, false);
          wa.OnConnectSuccess += () =&gt;
          {
              wa.OnLoginSuccess += (phonenumber, data) =&gt;
              {
                  wa.SendMessage(sendTo, message);
                  response = true;
              };
              wa.OnLoginFailed += (data) =&gt;
              {
                  response = false;
              };
  
              wa.Login();
          };
          wa.OnConnectFailed += (Exception) =&gt;
          {
              response = false;
          };
          return Json(response);
      }
  </code></pre>
  <p>In above code m not able to generate password through WART tool or not by using api CodeRequest method.</p>
  <p>Let me know if any updates is there.</p>