whatsapp-framework icon indicating copy to clipboard operation
whatsapp-framework copied to clipboard

Image receiving support

Open shubhamparamhans opened this issue 6 years ago • 4 comments

When i send image to bot all i get in console is InvalidMessage or KeyId for 91XXXXXXXXXX, going to send a retry Do we have support of receiving image?? @SPWC have you tried this!

shubhamparamhans avatar May 28 '18 08:05 shubhamparamhans

I've been using the https://github.com/AragurDEV/yowsup fork recently so cant say if that error existed before. However checked it now and released it does crash my current instance. Implemented a quick fix as I only need to look at "text". Go to app/models/message and comment out media message section in build like so:

def build(self):
        if helper.is_text_message(self.message_entity):
            self.build_text_message()
        # elif helper.is_media_message(self.message_entity):
        #     self.build_media_message()
        else:
            print("Unsupported message")

LabtronicsDesign avatar May 28 '18 12:05 LabtronicsDesign

@SPWC i did some changes in code and able to receive image but its only in 1-1 chat. Still not working in group chat! I think this might be some logical bug or something, because GroupCipher used is working for text messages but not for media messages

shubhamparamhans avatar May 29 '18 07:05 shubhamparamhans

@shubhamparamhans how did you manage to receive images?

luebke-dev avatar Jun 28 '18 13:06 luebke-dev

InvalidMessage or KeyId for 91XXXXXXXXXX, going to send a retry after this, it's not going online and messages are not delivering if I send from other numbers, and I am also not able to send messages

patelnilanj avatar Nov 22 '18 05:11 patelnilanj