kyros icon indicating copy to clipboard operation
kyros copied to clipboard

WhatsApp messages sending and reading

Open lc-at opened this issue 5 years ago • 10 comments

lc-at avatar Jun 09 '20 07:06 lc-at

Hello, thank for this amazing lib, but i still cannot sending message, i tried to follow the simple example. already logged in, but still cant sending message.

irvanrahadhian avatar Jul 14 '20 17:07 irvanrahadhian

Sending messages is currently still a pending task. In order to send a message, the binary websocket message decoding process still has to be done in the first place (ongoing).

lc-at avatar Jul 15 '20 02:07 lc-at

This lib isn't continued yet ?

RynKings avatar Feb 15 '21 11:02 RynKings

This lib isn't continued yet ?

Yes, it is still pending. If you want, you can contribute and help develop the feature. I will be very welcome to see your pull request.

lc-at avatar Feb 15 '21 11:02 lc-at

Hi guys, I saw that this feature is still pending. Unfortunately, I do know what should be the next steps after the first part. Do we know which steps need to be developed for sending? Do we have a plan or details? maybe we can help in advance with this future. Regards,

MaverickAlonso avatar Aug 30 '21 21:08 MaverickAlonso

Sorry for the lagging development. I really wish I could work on it sooner. If you want to work on the feature, you can follow the reference by looking at whatsapp-web-reveng or go-whatsapp (especially the part of code where they do binary encoding and decoding). So far, we have been able to decrypt the websocket messages. From all the websocket messages, some are binary messages and some are just regular string. Before being able to send and read WhatsApp message, I believe that the first thing we have to work out is the binary decoder/encoder (#3).

Regards,

lc-at avatar Aug 31 '21 08:08 lc-at

see https://github.com/ravindu01manoj/Sew-Queen they have built a complete WhatsApp bot, and every easy deploy with the direct link to Heroku. But it's done with Javascript or rather Node-JS, we might able to reimplement it in python as well.

RezSat avatar Dec 13 '21 12:12 RezSat

@RezSat I will take a look on that.

lc-at avatar Dec 14 '21 20:12 lc-at

@RezSat I will take a look on that.

I think it will be harder because they haven't completely open sourced it, some of the features aren't readable on normal manner.

RezSat avatar Dec 19 '21 11:12 RezSat

I have added to develop branch the binary reader for WhatsApp messages. Currently the implementation is receiving text plain messages. To integrate with the message handler i have added a message callback. Changes are uploaded with #21.

There is some work to do with the received message to identify different type of messages. Currently media messages are not decoding successfully. Decoding is failing with the protobuf decode. I'm looking some references to identify how to solve it and allow to receive media messages. Currently media messages are received but don't decoded and identified successfully.

reinier-millo avatar Jan 30 '22 03:01 reinier-millo