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!
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 !!!