Webwhatsapp-wrapper: webwhatsapp update, lib stopped

Created on 24 Aug 2018  Â·  31Comments  Â·  Source: mukulhase/WebWhatsapp-Wrapper

Has there been any update? I can not send text, does this happen to anyone else?

at the time of sending the process is stuck

Most helpful comment

Thank you @GeovRodri and @brunosoaresds !

I had not applied the PATH #380 completely.

The whatsapp_object.py file was missing, so it only received the messages

All 31 comments

it's working fine for me

the ones I have running also work, but what I'm developing now has stopped

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\Mammuu\10\wa.py", line 24, in
driver.send_message_to_id(line1, "message")
File "C:\Users\Mammuu\10\webwhatsapi__init__.py", line 543, in send_message_to_id
return self.wapi_functions.sendMessageToID(recipient, message)
File "C:\Users\Mammuu\10\webwhatsapi\wapi_js_wrapper.py", line 134, in __call__
raise JsException("Error in function {0} ({1}). Command: {2}".format(self.function_name, e.msg, command))
webwhatsapi.wapi_js_wrapper.JsException: Error in function sendMessageToID (Error: MsgKey error: something's not a wid: from:[email protected] to:[email protected] p:undefined). Command: return WAPI.sendMessageToID('[email protected]','message', arguments[0])

WhatsApp lib updated, this support lib ended.
To more information, support continuous, send message to +5517991262689 or [email protected]

I'm facing the same problem...

(Error: MsgKey error: something's not a wid: from [original number] to:[number to send message] p:undefined

I've tried all methods to send message (sendMessageToID, sendMessage and sendMessage2), but, unfortunately, without success. It's strange, because until yesterday everything was working fine. Anyway, I'm trying to figure out how to solve it with some js.

I'm going to notify this issue if I get some progress.

Thank you

Traceback (most recent call last):
File "wa.py", line 24, in
driver.send_message_to_id(line1, "test")
File "C:\Users\Mammuu\10\webwhatsapi__init__.py", line 543, in send_message_to_id
return self.wapi_functions.sendMessageToID(recipient, message)
File "C:\Users\Mammuu\10\webwhatsapi\wapi_js_wrapper.py", line 44, in __getattr__
wapi_functions = dir(self)
File "C:\Users\Mammuu\10\webwhatsapi\wapi_js_wrapper.py", line 67, in __dir__
self.driver.execute_script(script.read())
File "C:\Users\Mammuu\AppData\Local\Programs\Python\Python36\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 635, in execute_script
'args': converted_args})['value']
File "C:\Users\Mammuu\AppData\Local\Programs\Python\Python36\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 320, in execute
self.error_handler.check_response(response)
File "C:\Users\Mammuu\AppData\Local\Programs\Python\Python36\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 242, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.JavascriptException: Message: SyntaxError: expected expression, got '<'

@kuarad what is your browser?

My script ported to Chrome to performance and my function updated to https://github.com/mukulhase/WebWhatsapp-Wrapper/commit/486032fefe428def659c2a30f270c404f1eab9c3
Working Fine guys!

@flavionegrao it works for me, using Firefox

Fixed in #380 using the official object constructor

Ty, now it working again

@mvenezia00 same issue here, how do you do?

EDIT: Works now, but send messages not work :(

EDIT : READ MESSAGE OK !

but send messages not work :(

Even after updating wapi.js, I continue with the following error:

Error in function sendMessage (Timed out after 500000 ms). Command: return WAPI.sendMessage({'_serialized': '[email protected]', 'server': 'c.us', 'user': '5500007105071'},'Message from webwhatsapi', arguments[0])

@andersondeoliveiramachado
Change your file wapi.js function sendMessage:

window.WAPI.sendMessage = function (id, message, done) {

if (temp.id. === id) {

to:

if (temp.id._serialized === id) {

Already, I used the patch

Fixed in #380 using the official object constructor

I still can not send

@andersondeoliveiramachado,

What’s your error? I can send messages after apply patch #380 without problems. Remember to use the same interface, passing number equal [email protected]

Thank you @GeovRodri and @brunosoaresds !

I had not applied the PATH #380 completely.

The whatsapp_object.py file was missing, so it only received the messages

window.Store = {}; webpackJsonp([], { "bcihgfbdeb": (x, y, z) => window.Store = z('"bcihgfbdeb"') }, "bcihgfbdeb");
Store.Presence.find(444400000000+ '@c.us').then(function(r){ console.log(r)})

hi guys,
is this code working?

@ENSARBEREKET
Uncaught Error: Presence.gadd called without an id attr (id) at t.value (app.1c6cccbeae5d099f4d1e.js:9)

same as you, couldn't make .find function run

Should I insert an object like {user:xxx, server:xxx, _serialized:xxx} instead of number?

mertxkaan,

I tried but failed
Can you write a sample format

Thank u

Store.Presence.find( Store.Contact.models[0].id ) .then( function(d) {console.log(d) } ); is worked.
And I think it will not accept anything without an 'id' attribute after that.

Yes
Phone number not queried

@ENSARBEREKET
var temp1=Store.Chat.models[0];
var origID=temp1.id;
temp1.id.user="905xxxxxxxxx"; temp1.id.server="@c.us"; temp1.id._serialized="[email protected]";
Store.Presence.find(temp1.id)).then( function(d) {console.log(d.isOnline) } );
temp1.id=origID;

and you can use with any number:)

ok @mertxkaan
this worked
thank you so much :)

in init

def chat_send_message(self, chat_id, message):
if type(chat_id) is dict:
chat_id = chat_id['_serialized']

After applying #380 resp. get a current master I still get an error from sendMessageToID but not the "not a wid"-error, but:

... wapi_js_wrapper.py", line 134, in __call__
 raise JsException("Error in function {0} ({1}). Command: {2}"
   .format(self.function_name, e.msg, command))
webwhatsapi.wapi_js_wrapper.JsException: Error in function sendMessageToID 
(TypeError: t.split is not a function). Command: 
return WAPI.sendMessageToID({'_serialized': '....}, 'text', arguments[0])

I cannot find t.split anywhere in the code, so I'm pretty clueless about this error.

@ENSARBEREKET
var temp1=Store.Chat.models[0];
var origID=temp1.id;
temp1.id.user="905xxxxxxxxx"; temp1.id.server="@c.us"; temp1.id._serialized="[email protected]";
Store.Presence.find(temp1.id)).then( function(d) {console.log(d.isOnline) } );
temp1.id=origID;

and you can use with any number:)

Not working anymore?
I get always "false" as result, even if I try with an online contact.

Store not working please provide new code of store

@grIskra Were you able to figure it out?? If yes then can you please share the code.. I am also experincing the exact same problem..

not yet, store changed from whatsapp

On Mon, Jun 29, 2020, 5:16 PM Manjit Pardeshi notifications@github.com
wrote:

@grIskra https://github.com/grIskra Were you able to figure it out?? If
yes then can you please share the code.. I am also experincing the exact
same problem..

—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/mukulhase/WebWhatsapp-Wrapper/issues/379#issuecomment-651062514,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AE5KN7NXQGWTUSBTD2D6HSLRZB5HRANCNFSM4FRPHDXA
.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

erickythierry picture erickythierry  Â·  5Comments

alfred82santa picture alfred82santa  Â·  5Comments

drsoporte picture drsoporte  Â·  5Comments

juancrescente picture juancrescente  Â·  4Comments

dmreinoso picture dmreinoso  Â·  3Comments