Zalo User icon

Zalo User

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

Overview

This node manages interactions with Zalo users, a popular messaging platform. Specifically, the "Thu Hồi Tin Nhắn" (Undo Message) operation allows you to recall or delete a previously sent message in a conversation thread. This is useful when you want to retract messages that were sent by mistake or contain errors.

Practical scenarios include:

  • Automatically recalling messages based on certain triggers or conditions.
  • Managing conversations by removing outdated or incorrect messages.
  • Enhancing chat moderation by allowing message retraction.

Properties

Name Meaning
Thread ID The unique identifier of the user or conversation thread from which the message will be recalled.
Thread Type The type/category of the user or thread (e.g., individual chat, group chat).
msgId The unique identifier of the message to be recalled.
cliMsgId The client-side message ID associated with the message to be recalled.

Output

The output JSON contains:

  • status: A string indicating the success status, typically "Thành công" meaning "Success".
  • response: The raw response object returned from the Zalo API after attempting to undo the message. This may include details about the operation result.

No binary data output is produced by this operation.

Example output JSON structure:

{
  "status": "Thành công",
  "response": {
    // API response details here
  }
}

Dependencies

  • Requires an API key credential for authenticating with the Zalo platform.
  • Uses stored cookie, IMEI, and user agent information from credentials or input data to establish a session.
  • Depends on the external zca-js library for interacting with the Zalo API.

Troubleshooting

  • Common issues:

    • Invalid or expired credentials can cause authentication failures.
    • Incorrect threadId, msgId, or cliMsgId values will prevent successful message recall.
    • Network connectivity problems may interrupt API calls.
  • Error messages:

    • "No API instance found. Please make sure to provide valid credentials."
      Means the node could not authenticate with Zalo. Verify your API key and credential setup.
    • Errors related to missing parameters indicate required fields are not set correctly.
    • API errors returned in the response field should be checked for specific causes like permission issues or invalid IDs.
  • Resolution tips:

    • Double-check all required input properties.
    • Ensure credentials are up to date and have necessary permissions.
    • Review API limits or restrictions imposed by Zalo.

Links and References

Discussion