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

checkNumberStatus and WapQuery.queryExist error

Open luidigo opened this issue 3 years ago • 13 comments

Hey,

I'am having problem with this function. It's not returning anything. This problem began with new whatsapp multi-device version.

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

and

Store.WapQuery.queryExist("[email protected]")

Anyone with same problem?

luidigo avatar Nov 05 '21 18:11 luidigo

here too

jeferssonlemes avatar Nov 05 '21 20:11 jeferssonlemes

Use this:

id: "WapQuery", conditions: (module) => module.queryExist ? module

and put '+' at the beggining of number Store.WapQuery.queryExist("[email protected]")

fabiomello avatar Nov 08 '21 14:11 fabiomello

Use this:

id: "WapQuery", conditions: (module) => module.queryExist ? module

and put '+' at the beggining of number Store.WapQuery.queryExist("[email protected]")

Didn't work here. Same behaviour (no response).

Are you in last Whatsapp version (multi-device)?

Thank you

luidigo avatar Nov 08 '21 14:11 luidigo

Sorry, i send only the half of code { id: "WapQuery", conditions: (module) => module.queryExist ? module : null }

after that: Store.WapQuery.queryExist("[email protected]")

finally: Check the variable _value at return, will return 'wid' with server, user and _serialized, if the number doesnt exist, the _value will return null

(edited)

fabiomello avatar Nov 08 '21 14:11 fabiomello

Sorry, i send only the half of code { id: "WapQuery", conditions: (module) => module.queryExist ? module : null }

after that: Store.WapQuery.queryExist("[email protected]")

finally: Check the variable _value at return, will return 'wid' with server, user and _serialized, if the number doesnt exist, the _value will return null

(edited)

That did the trick! Thank you.

In time, How do you check if it's multi-device version?

This code works ONLY for "non Multi-Device"

conditions: (module) => (module.default && module.default.queryExist) ? module.default : null

and this works only for multi device

conditions: (module) => module.queryExist ? module : null

Cheers!

luidigo avatar Nov 08 '21 16:11 luidigo

Sorry, i send only the half of code { id: "WapQuery", conditions: (module) => module.queryExist ? module : null }

after that: Store.WapQuery.queryExist("[email protected]")

finally: Check the variable _value at return, will return 'wid' with server, user and _serialized, if the number doesnt exist, the _value will return null

(edited)

Its returning the same response whether the number is having whatsapp or not image

hkpanchani avatar Nov 24 '21 16:11 hkpanchani

Store.WapQuery.queryExist("[email protected]")

I'm also getting value undefined !

Shvan11 avatar Dec 07 '21 10:12 Shvan11

still not fixed... in beta mode

Masterxv avatar Feb 12 '22 16:02 Masterxv

any updates on this new number check update in beta mode?

eduardoff19 avatar Feb 28 '22 17:02 eduardoff19

I replaced the queryExist with this one

if (window.WAPI.checkNumberStatus(id)) {

robertoclebio avatar Mar 04 '22 14:03 robertoclebio

it didn't work for me, follow my code image

**window.WAPI.checkNumberStatus = function (id, done) { window.Store.WapQuery.queryExist(id).then((result) => { if( done !== undefined) { if (result.jid === undefined) throw 404; done(window.WAPI._serializeNumberStatusObj(result)); } }).catch((e) => { if (done !== undefined) { done(window.WAPI._serializeNumberStatusObj({ status: e, jid : id })); } });

return true;

};**

how do i update the two lines? image

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

eduardoff19 avatar Mar 04 '22 15:03 eduardoff19

I replaced the queryExist with this one

if (window.WAPI.checkNumberStatus(id)) {

hi, how do u replace ? can u share the injector.js file? thx

jonyhandoko avatar May 17 '22 06:05 jonyhandoko

Sorry, i send only the half of code { id: "WapQuery", conditions: (module) => module.queryExist ? module : null } after that: Store.WapQuery.queryExist("[email protected]") finally: Check the variable _value at return, will return 'wid' with server, user and _serialized, if the number doesnt exist, the _value will return null (edited)

Its returning the same response whether the number is having whatsapp or not image

did you solve this issue? Please share your solution if you can fix it! Thanks

hoangatpaygate avatar Jun 06 '22 14:06 hoangatpaygate