Description
This event is triggered when a message is revoked (deleted for everyone) by someone in the chat. It provides information about the message before and after the revocation.
Webhook Request
HTTP Method
POST
Request Headers
Name | Value |
---|---|
Content-Type | application/json |
User-Agent | WaAPI Webhook User Agent |
Request Body
{
"event": "message_revoke_everyone",
"instanceId": "1",
"data": {
"after": {
"_data": {
"id": {
"fromMe": true,
"remote": "123456789@c.us",
"id": "AAABBBCCCDDDEEEFFF111222333",
"_serialized": "true_123456789@c.us_AAABBBCCCDDDEEEFFF111222333"
},
"rowId": 999999451,
"viewed": false,
"type": "revoked",
"subtype": "sender",
"t": 1738907931,
"revokeTimestamp": 1738934442,
"from": "987654321@c.us",
"to": "123456789@c.us",
"ack": 3,
"invis": true,
"star": false,
"kicNotified": false,
"isFromTemplate": false,
"pollOptions": [],
"pollInvalidated": false,
"pollVotesSnapshot": {
"pollVotes": []
},
"latestEditMsgKey": null,
"latestEditSenderTimestampMs": null,
"eventInvalidated": false,
"isVcardOverMmsDocument": false,
"revokeSender": "987654321@c.us",
"protocolMessageKey": {
"fromMe": true,
"remote": "123456789@c.us",
"id": "AAABBBCCCDDDEEEFFF111222333",
"_serialized": "true_123456789@c.us_AAABBBCCCDDDEEEFFF111222333"
},
"isForwarded": false,
"hasReaction": false,
"viewMode": "VISIBLE",
"messageSecret": {
"0": 127,
"1": 197,
"2": 2,
"3": 233,
"4": 57,
"5": 168,
"6": 171,
"7": 66,
"8": 26,
"9": 98,
"10": 9,
"11": 236,
"12": 165,
"13": 212,
"14": 105,
"15": 170,
"16": 192,
"17": 82,
"18": 245,
"19": 17,
"20": 185,
"21": 245,
"22": 151,
"23": 39,
"24": 213,
"25": 97,
"26": 84,
"27": 20,
"28": 189,
"29": 107,
"30": 139,
"31": 125
},
"originalSelfAuthor": "987654321@c.us",
"isSendFailure": false,
"errorCode": "NoError",
"productHeaderImageRejected": false,
"lastPlaybackProgress": 0,
"isDynamicReplyButtonsMsg": false,
"isCarouselCard": false,
"parentMsgId": null,
"callSilenceReason": null,
"isVideoCall": false,
"isMdHistoryMsg": true,
"stickerSentTs": 0,
"isAvatar": false,
"lastUpdateFromServerTs": 0,
"invokedBotWid": null,
"botTargetSenderJid": null,
"bizBotType": null,
"botResponseTargetId": null,
"botPluginType": null,
"botPluginReferenceIndex": null,
"botPluginSearchProvider": null,
"botPluginSearchUrl": null,
"botPluginSearchQuery": null,
"botPluginMaybeParent": false,
"botReelPluginThumbnailCdnUrl": null,
"botMsgBodyType": null,
"requiresDirectConnection": false,
"bizContentPlaceholderType": null,
"hostedBizEncStateMismatch": false,
"senderOrRecipientAccountTypeHosted": false,
"placeholderCreatedWhenAccountIsHosted": false,
"links": []
},
"id": {
"fromMe": true,
"remote": "123456789@c.us",
"id": "AAABBBCCCDDDEEEFFF111222333",
"_serialized": "true_123456789@c.us_AAABBBCCCDDDEEEFFF111222333"
},
"ack": 3,
"hasMedia": false,
"body": "",
"type": "revoked",
"timestamp": 1738907931,
"from": "987654321@c.us",
"to": "123456789@c.us",
"deviceType": "android",
"isForwarded": false,
"forwardingScore": 0,
"isStatus": false,
"isStarred": false,
"fromMe": true,
"hasQuotedMsg": false,
"hasReaction": false,
"vCards": [],
"mentionedIds": [],
"groupMentions": [],
"isGif": false,
"links": []
},
"before": {
"_data": {
"id": {
"fromMe": true,
"remote": "123456789@c.us",
"id": "AAABBBCCCDDDEEEFFF111222333",
"_serialized": "true_123456789@c.us_AAABBBCCCDDDEEEFFF111222333"
},
"rowId": 999999451,
"viewed": false,
"body": "Sample message",
"type": "chat",
"t": 1738907931,
"from": "987654321@c.us",
"to": "123456789@c.us",
"ack": 3,
"invis": true,
"star": false,
"kicNotified": false,
"isFromTemplate": false,
"pollOptions": [],
"pollInvalidated": false,
"pollVotesSnapshot": {
"pollVotes": []
},
"latestEditMsgKey": null,
"latestEditSenderTimestampMs": null,
"mentionedJidList": [],
"groupMentions": [],
"eventInvalidated": false,
"isVcardOverMmsDocument": false,
"isForwarded": false,
"hasReaction": false,
"viewMode": "VISIBLE",
"messageSecret": {
"0": 127,
"1": 197,
"2": 2,
"3": 233,
"4": 57,
"5": 168,
"6": 171,
"7": 66,
"8": 26,
"9": 98,
"10": 9,
"11": 236,
"12": 165,
"13": 212,
"14": 105,
"15": 170,
"16": 192,
"17": 82,
"18": 245,
"19": 17,
"20": 185,
"21": 245,
"22": 151,
"23": 39,
"24": 213,
"25": 97,
"26": 84,
"27": 20,
"28": 189,
"29": 107,
"30": 139,
"31": 125
},
"originalSelfAuthor": "987654321@c.us",
"productHeaderImageRejected": false,
"lastPlaybackProgress": 0,
"isDynamicReplyButtonsMsg": false,
"isCarouselCard": false,
"parentMsgId": null,
"callSilenceReason": null,
"isVideoCall": false,
"isMdHistoryMsg": true,
"stickerSentTs": 0,
"isAvatar": false,
"lastUpdateFromServerTs": 0,
"invokedBotWid": null,
"botTargetSenderJid": null,
"bizBotType": null,
"botResponseTargetId": null,
"botPluginType": null,
"botPluginReferenceIndex": null,
"botPluginSearchProvider": null,
"botPluginSearchUrl": null,
"botPluginSearchQuery": null,
"botPluginMaybeParent": false,
"botReelPluginThumbnailCdnUrl": null,
"botMsgBodyType": null,
"requiresDirectConnection": false,
"bizContentPlaceholderType": null,
"hostedBizEncStateMismatch": false,
"senderOrRecipientAccountTypeHosted": false,
"placeholderCreatedWhenAccountIsHosted": false,
"links": []
},
"id": {
"fromMe": true,
"remote": "123456789@c.us",
"id": "AAABBBCCCDDDEEEFFF111222333",
"_serialized": "true_123456789@c.us_AAABBBCCCDDDEEEFFF111222333"
},
"ack": 3,
"hasMedia": false,
"body": "Sample message",
"type": "chat",
"timestamp": 1738907931,
"from": "987654321@c.us",
"to": "123456789@c.us",
"deviceType": "android",
"isForwarded": false,
"forwardingScore": 0,
"isStatus": false,
"isStarred": false,
"fromMe": true,
"hasQuotedMsg": false,
"hasReaction": false,
"vCards": [],
"mentionedIds": [],
"groupMentions": [],
"isGif": false,
"links": []
}
}
}