locked
Send WhatsApp sms from c# RRS feed

  • Question

  • Hello Everyone,
    I have downloaded this whatsApp Api
     
    Whatsapp API for .NET 15.1.9
     
    But I don't know how to use this API to send Message to others
     
    I tried the following code but it is throwing exception
     
    WhatsAppApi.WhatsApp objwa = new WhatsAppApi.WhatsApp("+923422352158", "123456789012345", "Taqi",true);
    objwa.OnError += new WhatsAppApi.WhatsEventBase.OnErrorDelegate(objwa_OnError);
    objwa.OnConnectFailed += new WhatsAppApi.WhatsEventBase.ExceptionDelegate(objwa_OnConnectFailed);
    objwa.Connect();
    objwa.Login();
     
    The Above code throw exception
    Invalid length for a Base-64 char array.
     
    Any help will be appreciated.
    Thanks

    www.techgulf.blogspot.com

    • Moved by Barry Wang Wednesday, February 18, 2015 2:57 AM
    Monday, February 16, 2015 6:35 PM

Answers

  • Any questions you may have about the third-party Whatsapp API for .NET should not be asked in these forums as they are intended for Microsoft's products and technologies only.

    You may ask your question somewhere on the project site or ask the owners directly if you have a question or issue regarding this API: https://www.nuget.org/packages/WhatsAppAPI/

    Please remember to close your threads by marking helpful posts as answer.

    • Proposed as answer by Barry Wang Wednesday, February 18, 2015 2:57 AM
    • Marked as answer by Just Karl Friday, February 27, 2015 8:28 PM
    Monday, February 16, 2015 9:20 PM

All replies

  • Any questions you may have about the third-party Whatsapp API for .NET should not be asked in these forums as they are intended for Microsoft's products and technologies only.

    You may ask your question somewhere on the project site or ask the owners directly if you have a question or issue regarding this API: https://www.nuget.org/packages/WhatsAppAPI/

    Please remember to close your threads by marking helpful posts as answer.

    • Proposed as answer by Barry Wang Wednesday, February 18, 2015 2:57 AM
    • Marked as answer by Just Karl Friday, February 27, 2015 8:28 PM
    Monday, February 16, 2015 9:20 PM
  • yes,

    you can use :


    Mark as answer or vote as helpful if you find it useful | Ammar Zaied [MCP]

    Tuesday, February 17, 2015 3:48 PM
  • Hello,

            I tried both links, but there is no proper documentation about how to use the code.

    Could you please provide me a sample code about how to send receive sms to other whatsApp users.

    Thanks


    www.techgulf.blogspot.com

    Wednesday, February 18, 2015 5:44 PM