Webwhatsapp-wrapper: sendImage not Working on wapi.js

Created on 7 Feb 2020  路  7Comments  路  Source: mukulhase/WebWhatsapp-Wrapper

Guys, good night!
I'm using the Python package and I came across an extreme delay to send a media (audio, image or any other), I went to check directly by JS and noticed the following:

{
  "_flags": 6,
  "_value": {},
  "_resolveLevel": 1,
  "_thenableParent": null
}

Sintax used:
window.WAPI.sendImage("valid-base64-media","[email protected]","test.mp3","")

Are you going through or have you been through this? Have a tip on how to solve? c.c
Thanks!

js-problem

All 7 comments

Search for all occurrences of mediaCollection and replace:
var mc = new Store.MediaCollection();
to
var mc = new Store.MediaCollection(chat);

Search for all occurrences of mediaCollection and replace:
var mc = new Store.MediaCollection();
to
var mc = new Store.MediaCollection(chat);

It didn't work, I changed line 1252 where that statement was.

Search for all occurrences of mediaCollection and replace:
var mc = new Store.MediaCollection();
to
var mc = new Store.MediaCollection(chat);

It didn't work, I changed line 1252 where that statement was.

join to my group whatsapp https://chat.whatsapp.com/H98BAnedavgHxrnvxuBwTl

Search for all occurrences of mediaCollection and replace:
var mc = new Store.MediaCollection();
to
var mc = new Store.MediaCollection(chat);

It didn't work, I changed line 1252 where that statement was.

join to my group whatsapp https://chat.whatsapp.com/H98BAnedavgHxrnvxuBwTl

Problem solved after placing the code in __init__.py and changing the sendImage code.
Ty guy!

@riquedev

Problem solved after placing the code in init.py

which code did you put in init.py? I am facing same issue. can you please suggest?

@riquedev

Problem solved after placing the code in init.py

which code did you put in init.py? I am facing same issue. can you please suggest?

Hi @manojsitapara !

I just made the standard calls inside the init file, I will leave attached the javascript file that I use.
wapi.zip

@riquedev thank you !!!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

wallysonn picture wallysonn  路  3Comments

mhndm picture mhndm  路  5Comments

NolanWang picture NolanWang  路  5Comments

d2hf picture d2hf  路  6Comments

desstannoz picture desstannoz  路  4Comments