Webwhatsapp-wrapper: WapQuery/queryExist not exist, Help!

Created on 24 Jan 2019  路  31Comments  路  Source: mukulhase/WebWhatsapp-Wrapper

WapQuery in Store not exist more, i need queryExist function, how to find this?

Most helpful comment

There is a better way to resolve this problems, adjusting the auto discovery code... for the WapQuery you need just to change:

{ id: "WapQuery", conditions: (module) => (module.queryExist) ? module : ((module.default && module.default.queryExist) ? module.default : null) }

I need more time to check others, but as i see, a lot of objects have changed...

EDIT

After checking all objects, there are only two changes, in WapQuery and in the ProtoConstructor. New ProtoConstructor is:

{ id: "ProtoConstructor", conditions: (module) => (module.prototype && module.prototype.constructor.toString().indexOf('binaryProtocol deprecated version') >= 0) ? module : ((module.default && module.default.prototype && module.default.prototype.constructor.toString().indexOf('binaryProtocol deprecated version') >= 0) ? module.default : null) }

All 31 comments

@lfdelphino @ecjN00B @mukulhase @bobaoapae @brunosoaresds

i am having the same problem

@lfdelphino @ ecjN00B @mukulhase @bobaoapae @brunosoaresds

@oltanalkan I need to check if number have whatsapp. you too?

Store.UserConstructor.create("[email protected]") not exist

i am having the same problem

How did you solve it?

@mohamedhussuien How did you fix it?

Any solution for queryExist to check if number have whatsapp?

Any solution for queryExist to check if number have whatsapp?

yes contact me
[email protected]

OK

@erickmourasilva dont wrote to him) he want 500$ to solve that problem.

@erickmourasilva dont wrote to him) he want 500$ to solve that problem.

It saddens us to know that no matter how much the community helps keep the library up to date, some people ask for money to help.

I found a fix for my problem, guys.

@erickmourasilva what kind of fix?

After 64 line in WAPI.js paste this code
window.Store.WapQuery = {}; webpackJsonp([], { "dgfhfgbdeb": (x, y, z) => window.Store.WapQuery = z('"dgfhfgbdeb"') }, "dgfhfgbdeb");
window.Store.WapQuery = window.Store.WapQuery.default;

WapQuery will go back to Store

Thanks, works perfectly!

create pull request if that solve problem with queryExist

Store.UserConstructor.create("[email protected]") is not a function

How do I create this ?

thank you

@DRBILISIM in UserConstructor create function is never been. What you whant to do? send message or what?

@DRBILISIM, maybe like here.

const idUser = new window.Store.UserConstructor("[email protected]");
const chat = await Store.Chat.find(idUser);

window.Store.Presence.find(window.Store.UserConstructor.create("[email protected]"))

I'm running a code like this

Maybe running like?

const idUser = new window.Store.UserConstructor("[email protected]");
const res = await window.Store.Presence.find(idUser);

It's a good idea to open an issue for this.

@jabolina
Up to 1 day
Code was working

Thank you, it worked !!!

I foll

After 64 line in WAPI.js paste this code
window.Store.WapQuery = {}; webpackJsonp([], { "dgfhfgbdeb": (x, y, z) => window.Store.WapQuery = z('"dgfhfgbdeb"') }, "dgfhfgbdeb");
window.Store.WapQuery = window.Store.WapQuery.default;

WapQuery will go back to Store

@erickmourasilva
I tried to add your solution and created a pr but it isn't working. But I'm having the same error code.
https://github.com/mukulhase/WebWhatsapp-Wrapper/pull/547

pull request must be approved, before you must fix in your local storage or server.

There is a better way to resolve this problems, adjusting the auto discovery code... for the WapQuery you need just to change:

{ id: "WapQuery", conditions: (module) => (module.queryExist) ? module : ((module.default && module.default.queryExist) ? module.default : null) }

I need more time to check others, but as i see, a lot of objects have changed...

EDIT

After checking all objects, there are only two changes, in WapQuery and in the ProtoConstructor. New ProtoConstructor is:

{ id: "ProtoConstructor", conditions: (module) => (module.prototype && module.prototype.constructor.toString().indexOf('binaryProtocol deprecated version') >= 0) ? module : ((module.default && module.default.prototype && module.default.prototype.constructor.toString().indexOf('binaryProtocol deprecated version') >= 0) ? module.default : null) }

Thanks, Work For Me

@brunosoaresds "ProtoConstructor" unavailable

@brunosoaresds "ProtoConstructor" unavailable

Here is: https://github.com/mukulhase/WebWhatsapp-Wrapper/issues/540#issuecomment-457203642

But you use the ProtoConstructor in some custom function? we don't use it anymore in the wapi.js

@brunosoaresds thnx, i dont use. Just sit to test wapi.js. Wrote because not find it.

Man, you're good

somebody can tell me how to get return status of this method ? why always return true

Was this page helpful?
0 / 5 - 0 ratings

Related issues

juancrescente picture juancrescente  路  4Comments

Zingers-ZA picture Zingers-ZA  路  6Comments

FeezyHendrix picture FeezyHendrix  路  3Comments

shakraw picture shakraw  路  5Comments

wallysonn picture wallysonn  路  3Comments