I'am trying to send image from whatsapp api c# application there is the code :
byte[] buffer = File.ReadAllBytes(op.FileName);
wa.SendMessageImage(user.GetFullJid() + "@s.whatsapp.net", buffer, ApiBase.ImageType.GIF);
MessageBox.Show("ok");
it gives me error :
An unhandled exception of type 'System.Exception' occurred in WhatsAppApi.dll
Additional information: BinTreeNodeReader->readListSize: Invalid token 231