Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

not running Sending image via whatsapp api using c# #18

Closed
abu-sraag opened this issue Aug 7, 2015 · 5 comments
Closed

not running Sending image via whatsapp api using c# #18

abu-sraag opened this issue Aug 7, 2015 · 5 comments

Comments

@abu-sraag
Copy link

hello i'm trying to send an image using c#

but the image not delivered and there is no exception message !!!

here's my code

byte[] img = File.ReadAllBytes("e:\img.gif");
wa.OnConnectSuccess += () =>
{
MessageBox.Show("Connected to whatsapp...");

    wa.OnLoginSuccess += (phoneNumber, data) =>
    {
        wa.SendMessage(to, msg);

        wa.SendMessageImage(to,img,ApiBase.ImageType.GIF);
        MessageBox.Show("Message Sent...");
    };

}

@abu-sraag
Copy link
Author

byte[] img = File.ReadAllBytes(@"e:\img.gif");
wa.OnConnectSuccess += () =>
{
MessageBox.Show("Connected to whatsapp...");

wa.OnLoginSuccess += (phoneNumber, data) =>
{
    wa.SendMessage(to, msg);

    wa.SendMessageImage(to,img,ApiBase.ImageType.GIF);
    MessageBox.Show("Message Sent...");
};

@sanderdriesen
Copy link
Owner

How do you create the FMessageIdentifierKey represented by the 'to' variable?

@abu-sraag
Copy link
Author

I did not understand me corrected the error

I did not understand your words where what is wrong (FMessageIdentifierKey )?

Is there a reference wiki

Note that it does not appear any error just are not sen

@abu-sraag
Copy link
Author

i am edit
wa.SendMessageImage(tbto.Text,img,ApiBase.ImageType.GIF);

not send what is wrong ?!

@janpieterz
Copy link
Collaborator

Hi @abu-sraag

There is no reference wiki. This is just an open source effort to allow people to play with the service, and nobody is investing a lot of time to make it that accessible for developers, precisely because it's just meant for playing so developers can find out this stuff for themselves.
There should be some sample code in the projects that should help you slightly and besides that just understanding what is going on by reading the code.
We don't provide any support or services so I'll close this issue. Sorry we can't be of more help to you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants