yotam180 / WhatsappAPI

A simple API to integrate chatbots written in Javascript with WhatsApp Web :speech_balloon::calling: (Store hotfix https://github.com/Zibri/WhatsAppWebApi/blob/master/zstore.js)
118 stars 55 forks source link

Step by step installation and configuration of the API when the WebStore does not allow downloading it. #44

Open Lewisihno opened 6 years ago

Lewisihno commented 6 years ago

step by step installation and configuration of the API when the WebStore does not allow downloading, because I access the link to install the extension but says there is an error in the link, look for it but it does not appear, I would like to launch this Chatbot for some Labs that I have in mind: D

rcarmonad commented 6 years ago

Here is the answer for your question https://github.com/yotam180/WhatsappAPI/issues/38

Lewisihno commented 6 years ago

Thanks. https://github.com/yotam180/WhatsappAPI/issues/38

now, to try!!

rcarmonad commented 6 years ago

@Lewisihno i've got an exception: Uncaught ReferenceError: Store is not defined. Is this working for you?

I'm using chrome on ubuntu.

yotam180 commented 5 years ago

@rcarmonad Let me update the code there and test it again. I will notify here when done :slightly_smiling_face:

yotam180 commented 5 years ago

@rcarmonad I think I got it. Try again and keep me updated.

rcarmonad commented 5 years ago

Ok, i've been working on it and see that the main.js was more updated than the files in the ext folder. I'll keep you updated.

yotam180 commented 5 years ago

Yes it was. Try updating your git folder, the main.js file is now gone and I migrated all the changes and fixes to the extension api.js.

rcarmonad commented 5 years ago

There are some issues with changes on the json from whatsapp. For example:

parseMsgObject: function(msg_object) {
            var m = msg_object.all;
            if (msg_object["__x__quotedMsgObj"]) {
                m.quotedMsg = API.parseMsgObject(Core.msg(msg_object.__x__quotedMsgObj.__x_id._serialized));
            }
            m.chat = m.chat.all;
            delete m.msgChunk;
            return m;
        },

m.chat.all does not works. So, i've eliminated the call to parseMsgObject.

Previously, was other issues, with de window.Store, but, it was solved on main.js, and now in the extension. Let me know if i can help you in any way.