WebWhatsapp-Wrapper icon indicating copy to clipboard operation
WebWhatsapp-Wrapper copied to clipboard

WapQuery/queryExist not exist, Help!

Open erickmourasilva opened this issue 6 years ago • 32 comments

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

erickmourasilva avatar Jan 24 '19 01:01 erickmourasilva

@lfdelphino @ecjN00B @mukulhase @bobaoapae @brunosoaresds

erickmourasilva avatar Jan 24 '19 02:01 erickmourasilva

i am having the same problem

@lfdelphino @ ecjN00B @mukulhase @bobaoapae @brunosoaresds

tetradox avatar Jan 24 '19 09:01 tetradox

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

erickmourasilva avatar Jan 24 '19 09:01 erickmourasilva

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

i am having the same problem

DRBILISIM avatar Jan 24 '19 10:01 DRBILISIM

How did you solve it?

DRBILISIM avatar Jan 24 '19 11:01 DRBILISIM

@mohamedhussuien How did you fix it?

erickmourasilva avatar Jan 24 '19 11:01 erickmourasilva

Any solution for queryExist to check if number have whatsapp?

erickmourasilva avatar Jan 24 '19 11:01 erickmourasilva

Any solution for queryExist to check if number have whatsapp?

yes contact me [email protected]

OK

erickmourasilva avatar Jan 24 '19 11:01 erickmourasilva

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

dev-bitrix avatar Jan 24 '19 11:01 dev-bitrix

@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.

erickmourasilva avatar Jan 24 '19 12:01 erickmourasilva

I found a fix for my problem, guys.

erickmourasilva avatar Jan 24 '19 12:01 erickmourasilva

@erickmourasilva what kind of fix?

dev-bitrix avatar Jan 24 '19 12:01 dev-bitrix

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 avatar Jan 24 '19 12:01 erickmourasilva

Thanks, works perfectly!

jabolina avatar Jan 24 '19 12:01 jabolina

create pull request if that solve problem with queryExist

dev-bitrix avatar Jan 24 '19 12:01 dev-bitrix

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

How do I create this ?

thank you

DRBILISIM avatar Jan 24 '19 12:01 DRBILISIM

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

dev-bitrix avatar Jan 24 '19 12:01 dev-bitrix

@DRBILISIM, maybe like here.

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

jabolina avatar Jan 24 '19 12:01 jabolina

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

I'm running a code like this

DRBILISIM avatar Jan 24 '19 12:01 DRBILISIM

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 avatar Jan 24 '19 12:01 jabolina

@jabolina Up to 1 day Code was working

DRBILISIM avatar Jan 24 '19 12:01 DRBILISIM

Thank you, it worked !!!

VinicSilva avatar Jan 24 '19 13:01 VinicSilva

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

mehmetcanfarsak avatar Jan 24 '19 13:01 mehmetcanfarsak

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

dev-bitrix avatar Jan 24 '19 13:01 dev-bitrix

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) }

brunosoaresds avatar Jan 24 '19 13:01 brunosoaresds

Thanks, Work For Me

radensoft avatar Jan 24 '19 13:01 radensoft

@brunosoaresds "ProtoConstructor" unavailable

dev-bitrix avatar Jan 24 '19 14:01 dev-bitrix

@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 avatar Jan 24 '19 14:01 brunosoaresds

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

dev-bitrix avatar Jan 24 '19 14:01 dev-bitrix

Man, you're good

jabolina avatar Jan 24 '19 14:01 jabolina