Zalo User Interact icon

Zalo User Interact

Gửi tin nhắn và tương tác với Zalo User

Message → Delete Message

AI-generated

Overview

This node handles the deletion of messages within a messaging platform. It supports deleting a message either only for the user themselves or for all participants in a group chat. The node requires specific identifiers such as Message ID, Client Message ID, and Sender User ID to perform the deletion. It is useful in scenarios where users want to remove messages they have sent or received, either privately or in group conversations.

Use Case Examples

  1. Deleting a message from a group chat for all members.
  2. Removing a message from the user's own view without affecting others.
  3. Undoing a sent message by deleting it using its client message ID.

Properties

Name Meaning
Message ID The unique identifier of the message to be deleted.
Client Message ID The client-side identifier of the message to be deleted.
Sender User ID The user ID of the sender of the message.
Only Me Boolean flag indicating whether to delete the message only for the user (true) or for all members in a group (false).

Output

JSON

  • success - Indicates if the message deletion was successful.
  • messageId - The ID of the deleted message.

Dependencies

  • An API key credential for authentication with the messaging platform's API.

Troubleshooting

  • Ensure that the Message ID, Client Message ID, and Sender User ID are correctly provided and valid.
  • If deleting for all members in a group, verify that the user has the necessary permissions to delete messages for everyone.
  • Check API authentication credentials and network connectivity if the deletion fails.
  • Common error messages include invalid message identifiers or insufficient permissions, which require verifying input data and user roles.

Links

Discussion