WaliChat icon

WaliChat

Interact with WaliChat WhatsApp API

Actions148

Chat Messages → Edit Message

AI-generated

Overview

This node integrates with the WaliChat WhatsApp API to perform various operations related to WhatsApp messaging and management. Specifically, for the Chat Messages resource with the Edit Message operation, it allows users to update the text content of an existing WhatsApp message by specifying the WhatsApp number (device), the message ID, and the new message text.

This is useful in scenarios where a sent message needs correction or updating without sending a new message, such as fixing typos or updating information in a conversation thread.

Practical example:

  • A customer support agent sends a message with incorrect details and wants to edit that message to provide the correct information directly in the chat history.

Properties

Name Meaning
WhatsApp Number The identifier of the WhatsApp number (device) from which the message was sent.
Message ID The unique hexadecimal ID of the WhatsApp message to be edited.
New Message Text The updated text content that will replace the original message's text.

Output

The node outputs JSON data representing the result of the edit message operation. This typically includes confirmation of the message update or details about the edited message returned by the WaliChat API.

No binary data output is indicated for this operation.

Dependencies

  • Requires an active connection to the WaliChat WhatsApp API.
  • Needs an API key credential configured in n8n for authentication with the WaliChat service.
  • The node depends on internal methods grouped under chatMessages actions to perform the edit operation.

Troubleshooting

  • Common issues:

    • Invalid or missing WhatsApp number (device) ID can cause failures.
    • Incorrect or non-existent message ID will prevent the message from being found and edited.
    • Insufficient permissions or expired API keys may lead to authorization errors.
    • Network connectivity problems with the WaliChat API endpoint.
  • Error messages:

    • "Message not found": Verify the message ID is correct and belongs to the specified WhatsApp number.
    • "Unauthorized" or "Invalid API key": Check that the API key credential is correctly set up and valid.
    • "Failed to update message": Could indicate API-side issues or invalid input parameters; review inputs and retry.

Links and References


If you need details on other resources or operations, feel free to ask!

Discussion