Auties00 / Cobalt

Standalone unofficial fully-featured Whatsapp Web and Mobile API for Java and Kotlin
MIT License
634 stars 185 forks source link

How to remove a reaction #299

Closed open-sudo closed 1 year ago

open-sudo commented 1 year ago

I see there is a method Whatsapp.removeReaction(). But I am not able to find out how to create the MessageInfo that it requires. I also tried to modify a reaction that the user previously sent by removing its content and reposting it back into the chat. Like this:

  ((ReactionMessage)info.message().content()).content(null);
  whatsapp.removeReaction(reacted);

This did not help either. Thoughts?

Auties00 commented 1 year ago

hod Whatsapp.removeReaction(). But I am not able to find out how to create the MessageInfo that it requires

You can't create that message info, you need to query it from the store