Zalo User icon

Zalo User

Quản lý người dùng Zalo

User → Thu hồi tin nhắn

AI-generated

Overview

This node operation allows users to undo (recall) a sent message in a Zalo chat. It is useful in scenarios where a user wants to retract a message they have sent either in a personal or group conversation. For example, if a message was sent by mistake or contains errors, this operation can be used to remove it from the chat for all participants.

Use Case Examples

  1. Undo a message sent in a personal chat by providing the thread ID, message ID, and client message ID.
  2. Undo a message sent in a group chat by specifying the group thread ID and message details.

Properties

Name Meaning
Thread ID The ID of the user or group chat thread from which the message will be undone.
Loại cuộc trò chuyện The type of conversation, either personal (Cá nhân) or group (Nhóm).
msgId The ID of the message to be undone.
cliMsgId The client message ID associated with the message to be undone.

Output

JSON

  • status - The status of the undo message operation, typically indicating success.
  • response - The response data returned from the Zalo API after attempting to undo the message.

Dependencies

  • Zalo API credentials including cookie, IMEI, and user agent for authentication.

Troubleshooting

  • Ensure that the provided thread ID, message ID, and client message ID are correct and correspond to an existing message.
  • If the operation fails, check that the Zalo API credentials are valid and have the necessary permissions.
  • Common error might include failure to undo a message if the message is too old or already deleted; in such cases, the API might return an error message.

Discussion