How to upload an image to WhatsApp server using yowsup
How to upload an image to WhatsAppp server and get url of image https://mms504.whatsapp.net/d6/15/00/6/1/6169eeec03dc50f69456497508a9466c.jpg using yowsup?
WhatsApp will block account when used third-party image url. see https://github.com/venomous0x/WhatsAPI/issues/258
Thank you very much.
I think you should read this: https://github.com/tgalal/yowsup/wiki/Yowsup-Library-Documentation
I'm trying to make a function to send images using Yowsup, but to execute the method I get these errors
toString ignored call, probably Encountered byte toString ignored call, probably Encountered byte Unhandled exception in thread started by <bound method WhatsappSendImage.onAuthSuccess of <Examples.SendImage.WhatsappSendImage instance at 0x865ab8c>>
Someone could help me.
There already is a function to send images, you should use that. See the library documentation CODeRUS posted.
I know, I read the documentation, but when calling the method message_imageSend, I get these errors
Errors usually come with line numbers and file names. You should have a look at those lines in those files and try to understand what goes wrong. My guess is that the parameters you are giving are of the wrong data type.
parameters are:
jid = id of the message url = url of the image name = name of the image size = int (image size) preview = image icon (base64_encode)
Is this correct?
@CODeRUS I just found out the send method, what's the upload image method. Any example for me. Thanks
I need to know this too.