wppconnect-team / wppconnect

WPPConnect is an open source project developed by the JavaScript community with the aim of exporting functions from WhatsApp Web to the node, which can be used to support the creation of any interaction, such as customer service, media sending, intelligence recognition based on phrases artificial and many other things, use your imagination
https://wppconnect.io
Other
1.86k stars 328 forks source link

Delete messages for all participants in a group #2312

Closed hugoruizsanchez closed 1 month ago

hugoruizsanchez commented 1 month ago

I'm interested in having the API delete messages for everyone in a group. In the Swagger documentation, delete-message doesn't seem to introduce options for this. Is there really no way to achieve it? I'm on the latest version 2.6.0,

image

The only options available are to delete it locally

icleitoncosta commented 1 month ago

Hi @hugoruizsanchez , yeah, it is possible

See payload:

{
  "phone": "1203630@g.us",
  "isGroup": true,
  "messageId": "messageId@g.us_3EB0434B37A6561@c.us",
  "deleteMediaInDevice": true
}
icleitoncosta commented 1 month ago

I will improov docs on Swagger server