Wrong Password using WhatsAPINet for send WhatsApp in WinForms C#

15,929

Use WART to generate a password

https://github.com/mgp25/WART

Or

https://github.com/shirioko/WART

Share:
15,929
Kiquenet
Author by

Kiquenet

Should "Hi", "Thanks" and taglines and salutations be removed from posts? http://meta.stackexchange.com/questions/2950/should-hi-thanks-and-taglines-and-salutations-be-removed-from-posts What have you tried? http://meta.stackexchange.com/questions/122986/is-it-ok-to-leave-what-have-you-tried-comments Asking http://stackoverflow.com/help/asking Answer http://meta.stackexchange.com/questions/8231/are-answers-that-just-contain-links-elsewhere-really-good-answers http://www.enriquepradosvaliente.com http://kiquenet.wordpress.com ◣◥◢◤◢◤◣◥◢◤◢◤◣◥◢◤ ◥◢◤◢◤◣◥◢◤◢◤◣◥◢◤◢ .NET developer and fan of continuous self-improvement and good patterns and practices. Stuff I am interested in: .NET technology stack in general, C#, Powershell and Javascript in particular as languages Test driven development, DI, IoC and mocking frameworks Data access with ORMs and SQL ASP.NET javascript, jQuery and related frontend frameworks Open source projects

Updated on June 05, 2022

Comments

  • Kiquenet
    Kiquenet almost 2 years

    I am thinking of creating an Windows Forms C# application (in Windows 7, Visual Studio 2012, .NET Framework 4.5) and I want use any WhatsApp API to send messages.

    I have found this .NET fork of the PHP interface WhatsAPI for PHP by Dídac Pérez Parera: https://github.com/perezdidac/WhatsAPINet

    I have this test code:

    string nickname = "WhatsAPI Test";
    // 34 = Country Code
    // 6xxyyzzmm = mobile number
    string sender = "346xxyyzzmm"; // Mobile number with country code (but without + or 00)
    string imei = "MY IMEI ANDROID THAT I GET USING *#06#"; // MAC Address for iOS IMEI for other platform (Android/etc) 
    
    var wa = new WhatsApp(sender, imei, nickname, true);
    string countrycode = sender.Substring(0, 2);
    string phonenumber = sender.Remove(0, 2);
    
    if (!WhatsRegister.ExistsAndDelete(countrycode, phonenumber, imei))
    {
      PrintToConsole("Wrong Password");
      return;
    }
    

    I test, but always I get "Wrong Password"

    In my mobile phone, I have installed Whatsapp. It's a Android 4.0.

    Any suggestions about it?