Actions14
Zalo User → Thu hồi tin nhắn
AI-generatedSummary
Revoke a sent message in a specified Zalo chat thread, either individual or group, by providing message identifiers and thread details.
Inputs
- Thread ID (required) — ID of the conversation thread where the message to be revoked was sent.
- Thread Type (required) — Type of the conversation thread: 0 for individual user chat, 1 for group chat.
- Message ID (required) — ID of the message that needs to be revoked.
- Client Message ID (required) — Client-side identifier of the message to revoke.
Output shape
a JSON object containing operation status and the API response.
The output JSON includes a 'status' field indicating success and a 'response' field with details from the Zalo API's undo message operation.
Examples
Example 1: Revoke a message sent in a group chat
Set Thread ID to the group's conversation ID, Thread Type to 1, and provide the Message ID and Client Message ID of the message to revoke.
Example 2: Revoke a message sent in a private conversation
Set Thread ID to the user's conversation ID, Thread Type to 0, and provide the respective message IDs to undo the message.