venomous0x / WhatsAPI

Interface to WhatsApp Messenger
2.59k stars 2.14k forks source link

any c# interface #1187

Open NoviceIndian opened 8 years ago

NoviceIndian commented 8 years ago

Is there any c# interface available of Whats-app API with source code?

kirilydk commented 8 years ago

https://github.com/mgp25/Chat-API-NET

Here´s where I got to learn how it works to develop my app. There´s only code for registering, and for sending messages, to receive messages or contacts sync you must:

            WhatSocket.Instance.OnGetMessage += OnGetMessage;
            WhatSocket.Instance.OnGetSyncResult += SyncResult;

First one gets messages, second adds number to your contact list. Also as you will see in the example, you must have running .PollMessages(); in a background thread.

I hope it helps you.