-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Query Message implmentation #6
Comments
You can convert JID/WID object to string with this function |
That function is returning a string combining values in server and user, but in original whatsapp web it is sending as object, if i use your helper function it will send as string which will not work for whatsapp server. |
can you attach the dump from web whatsapp? or point me to the code in web whatsapp js? |
Also, you not attach your code so I can't check it. Some binary need metric byte or it will fail. that byte is not part of the encrypted content. |
I added below function in
|
AFAIK, JID/WID is sent as string to whatsapp server. I never seen it send as object, you can look into binary writer in whatsapp code. It does replace all WID to string with correct "suffix" like replacing If you sure that WID is sent as object, so you can try to change that suffix. Also the group id is differ from user WID, something like |
I changed the metric in interface from WaJs/src/whatsapp/interfaces.ts Line 257 in a900da7
because the After doing that it is working got response from whatsapp server but another problem of handling binary for message. please check below screenshots |
Ans also when second response came (which has actual content), the callback is not called. |
Ah yes, just add little patch to not remove handle. make the handle function remove it self after all data received. Look here |
@pavankumarkatakam can you kindly guide me on how I can clone the whatsapp web and run locally as you are doing. I would like to learn and test it too. |
Hi, Im trying to get the previous chat list of a contact or group, by debugging the whatsapp web im able to see that is related to
query
, as belowso im trying to implement it but getting error as
writer:writeString passed non-string/wid type:
, i think because thejid
is Object in my message.Can you tell me how to proceed furthur.
The text was updated successfully, but these errors were encountered: