mikelustosa / Projeto-TInject

Projeto TInject
246 stars 132 forks source link

checkNumberStatus is not working #53

Closed sergey-chechaev closed 1 year ago

sergey-chechaev commented 1 year ago

Describe the bug Function checkNumberStatus is not working

To Reproduce Steps to reproduce the behavior:

  1. Inject script
  2. execute checkNumberStatus

Expected behavior Must return "status" => true

But return:

status
: 
TypeError: Cannot read properties of undefined (reading 'queryPhoneExists') at window.WAPI.checkNumberStatus (<anonymous>:2015:56) at <anonymous>:1:6
message
: 
"Cannot read properties of undefined (reading 'queryPhoneExists')"
stack
: 
"TypeError: Cannot read properties of undefined (reading 'queryPhoneExists')\n    at window.WAPI.checkNumberStatus (<anonymous>:2015:56)\n    at <anonymous>:1:6"

Screenshots image

Whatsapp WEB version: 2.2244.6

sergey-chechaev commented 1 year ago

Solved. You need use exist code 810 instead "+"

ono77 commented 1 year ago

hi Sergey, I also have the same problem What do you mean about 'use exist code 910 instead "+" I used window.WAPI.checkNumberStatus('XX3333333333') where XX is country code without "+"

sergey-chechaev commented 1 year ago

hi Sergey, I also have the same problem What do you mean about 'use exist code 910 instead "+" I used window.WAPI.checkNumberStatus('XX3333333333') where XX is country code without "+"

You need use exit code + country code fore example "+79263456789" -> "81079263456789"

ono77 commented 1 year ago

exit code + country

thank you, it's strange that in my case it works only if I use numbers without exit code and without country code: WAPI.checkNumberStatus('2634567890') -> true WAPI.checkNumberStatus('00392634567890') -> false (for Italy exit code=00 and country code=39)

sergey-chechaev commented 1 year ago

exit code + country

thank you, it's strange that in my case it works only if I use numbers without exit code and without country code: WAPI.checkNumberStatus('2634567890') -> true WAPI.checkNumberStatus('00392634567890') -> false (for Italy exit code=00 and country code=39)

Is It work WAPI.checkNumberStatus('810392634567890')? I don't know why but for USA number exit code 810 works

Zer0bytte commented 1 year ago

Have you fixed the problem?

ono77 commented 1 year ago

Is It work WAPI.checkNumberStatus('810392634567890')?

I already tried and not working.