Skip to content
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

Whatsapp says message wasn't sent, but it was #566

Closed
paulocsanz opened this issue Jun 9, 2021 · 13 comments
Closed

Whatsapp says message wasn't sent, but it was #566

paulocsanz opened this issue Jun 9, 2021 · 13 comments

Comments

@paulocsanz
Copy link

Hey, today we started experiencing a weird issue on whatsapp.

Some of our clients send messages using go-whatsapp and they are appearing with the red exclamation point next to them, like if they weren't sent at all. But the other person is in fact receiving them (and replying to them).

image

We are suspecting that this has something to do with whatsapp-web's version change, and since go-whatsappuses an older version is making the app confused.

It seems wise that the community documents and investigates more this version change, because it may start causing real problems soon.

@ramacatur
Copy link

Same issue. However, for WhatsApp applications that have not been updated, this does not happen.

@ramacatur
Copy link

I've found solution and it worked

Whatsapp changes the status value in the node format, where previously it was 0 (error) to 1 (pending). so in the message.go file, Send(msg interface{}), before

ch, err := wac.sendProto(msgProto)

Add this code to change status:

status := proto.WebMessageInfo_PENDING
msgProto.Status = &status

Try this solution

Thanks

@leonetosoft
Copy link

Same issue.

@leonetosoft
Copy link

status := proto.WebMessageInfo_PENDING msgProto.Status = &status

image

Solved!
Tanks @ramacatur

@beshoo
Copy link
Collaborator

beshoo commented Jun 10, 2021 via email

@leonetosoft
Copy link

@beshoo I think it's fair that @ramacatur does it because he found the solution!
Or do you want me to do it?

leonetosoft pushed a commit to leonetosoft/go-whatsapp that referenced this issue Jun 10, 2021
@leonetosoft
Copy link

Thanks @ramacatur for providing my first PR

@ramacatur
Copy link

Thanks @ramacatur for providing my first PR

Ok, you are welcome.

@rhsobr
Copy link
Contributor

rhsobr commented Jun 11, 2021

Thanks @leonetosoft for the PR

@jairforero
Copy link

status := proto.WebMessageInfo_PENDING msgProto.Status = &status

image

¡resuelto!
Tanques @ramacatur

Excelente , Very tks!!

@rafaelaraujobsb
Copy link

@ramacatur thank you!

What did you do to discover this solution? Did you decrypt the message whatsapp web was sending?

@ramacatur
Copy link

@ramacatur thank you!

What did you do to discover this solution? Did you decrypt the message whatsapp web was sending?

Yes, decrypt binary message in whatsapp web.

@aryahmph
Copy link

Still not working

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants