wppconnect-team / wa-js

WPPConnect/WA-JS is an open-source project with the aim of exporting functions from WhatsApp Web
https://wppconnect.io/wa-js/
Apache License 2.0
408 stars 130 forks source link

How to Delete message for everyone from group ? #2300

Closed bracketsApps007 closed 1 week ago

bracketsApps007 commented 4 weeks ago

How to Delete message for everyone from group ?

the function WPP.chat.deleteMessage('[number]@c.us', 'msgid', true, true); delete a message only for me not for everyone on group

jamesxt-94 commented 3 weeks ago

The problem in this file (line 94): https://github.com/wppconnect-team/wa-js/blob/main/src/chat/functions/deleteMessage.ts

the portion of code:

} else if (revoke && isSentByMe) {

only revoking message when isSentByMe. It's an error