Closed Souhaibahar closed 3 months ago
For delete and revoke msg use:
await WPP.chat.deleteMessage('[number]@c.us', '[msgId@c.us_3EB06A9EC8E5624576163', true, true);
For delete and revoke msg use:
await WPP.chat.deleteMessage('[number]@c.us', '[msgId@c.us_3EB06A9EC8E5624576163', true, true);
this worked to unsend my own messages ,, but it dosen't delete the message for chat , and only works for the messages i sended and can't delete the messages i received
WA-JS Version
3.4.0
WhatsApp Version
2.3000.1014410277-alpha
Browser Version
Latest Chrome
Operation System
Windows 10
Steps to reproduce
public async Task<bool> DeleteMessage(string contactId, string messageId) { try { await Page.EvaluateFunctionAsync(@"async () => { await WPP.chat.deleteMessage('CONTACT_ID@c.us', 'MESSAGE_ID') }".Replace("CONTACT_ID", contactId).Replace("MESSAGE_ID", messageId)).ConfigureAwait(false); return true; } catch (Exception ex) { Console.WriteLine(ex.ToString()); return false; } }
when i call DeleteMessage it return true with no exception , but the message dosen't delete , itried with recent messages and it's same thingWhat is expected?
To the message to be deleted
What is actually happening?
Nothing
Any additional comments?
No response