evolution-api
evolution-api copied to clipboard
how to delete message for everyone? Error while deleting message for everyone
Welcome!
- [x] Yes, I have searched for similar issues on GitHub and found none.
What did you do?
curl -X DELETE "https://zzz.com/chat/deleteMessageForEveryone/zzzz" \
> -H "apikey: zzzz" \
> -H "Content-Type: application/json" \
> -d '{
> "id": "zzz",
> "remoteJid": "[email protected]",
> "fromMe": false
> }'
{"status":500,"error":"Internal Server Error","response":{"message":["Error while deleting message for everyone","SessionError: No sessions"]}}%
Client name: evolution_exchange Version: 2.2.3
What did you expect?
delete success
What did you observe instead of what you expected?
Error while deleting message for everyone
Screenshots/Videos
No response
Which version of the API are you using?
Client name: evolution_exchange Version: 2.2.3
What is your environment?
Docker
Other environment specifications
No response
If applicable, paste the log output
No response
Additional Notes
No response
Hey, I believe you should use a more recent version. But from what I can see in your error, it looks like you're trying to delete a message that isn't yours (fromMe: false).
Have you tried deleting a message with fromMe: true to see if the issue still happens?
thanks your reply, but I am a group admin, i want to manager group message, likes some bad message, i want to delete it