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.03k stars 797 forks source link

window.WAPI.sendMessageToID doesn't work anymore #905

Open alpires opened 4 years ago

alpires commented 4 years ago

Hi Guys, some solution to sendMessageToID function?

group2tts commented 4 years ago

there are options ?

fnevesgx commented 4 years ago

I´ve been tested yesterday and works for me, but looks that return false most of the time.

Em qua., 17 de jun. de 2020 às 04:03, group2tts notifications@github.com escreveu:

there are options ?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/mukulhase/WebWhatsapp-Wrapper/issues/905#issuecomment-645192097, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAGT6ZPE3AL53P6SPDPMGTLRXBTDBANCNFSM4N74TVBQ .

alpires commented 4 years ago

I noticed that wapi.js is not updated with the following changes:

{ id: 'Presence', conditions: (value) => (value.default && value.default.Presence) ? value.default : null }, .... ....

                    if (window.Store.Presence) {
                        for (const prop in
                                window.Store.Presence) {
                            if (prop ===
                                "Presence") {

                                continue;
                            }
                            console.log(prop);

                            window.Store[prop] = window.Store.Presence[prop] || window.Store[prop];
                        }
                    }
alpires commented 4 years ago

And this is not updated too:

{ id: "Store", conditions: (module) => (module.default && module.default.Chat && module.default.Msg) ? module.default : null }

Without this changes, the code does not work.

zainkafeel commented 4 years ago

I noticed that wapi.js is not updated with the following changes:

{ id: 'Presence', conditions: (value) => (value.default && value.default.Presence) ? value.default : null }, .... ....

                    if (window.Store.Presence) {
                        for (const prop in
                                window.Store.Presence) {
                            if (prop ===
                                "Presence") {

                                continue;
                            }
                            console.log(prop);

                            window.Store[prop] = window.Store.Presence[prop] || window.Store[prop];
                        }
                    }

Where need to change this? seems like not working anymore, check number status also no working