mukulhase / WebWhatsapp-Wrapper

An API for sending and receiving messages over web.whatsapp [Working as of 18th May 2018]
https://webwhatsapi.readthedocs.io/en/latest/
MIT License
2.02k stars 797 forks source link

upload a image #997

Closed arvind1kumar1 closed 3 years ago

arvind1kumar1 commented 3 years ago

i got a issue
webwhatsapi.wapi_js_wrapper.JsException: Error in function downloadFile (ReferenceError: None is not defined). Command: return WAPI.downloadFile(None, arguments[0])

when upload a image. Please tell me how to solve it.

arvind1kumar1 commented 3 years ago

solve this issue

delandojunior commented 3 years ago

how do you solve this issue?

arvind1kumar1 commented 3 years ago

how do you solve this issue?

i added two lines in MediaMessage class in message.py if self.client_url is None: self.client_url = self._js_obj.get("deprecatedMms3Url", None)

tapankumar commented 3 years ago

def save_media(self, path, force_download=False):

gets full media

    **if self.client_url is None:
        self.client_url = self._js_obj.get("deprecatedMms3Url", None)**