DinastiAPI Chat icon

DinastiAPI Chat

Perform chat operations with DinastiAPI WhatsApp API

Overview

This node enables interaction with the DinastiAPI WhatsApp API to perform various chat-related operations. Specifically, the "Edit Message" operation allows users to modify the content of a previously sent WhatsApp message by specifying the message ID, the phone number associated with the message, and the new message content.

Common scenarios for this node include:

  • Correcting typos or errors in sent messages.
  • Updating information in a message after sending it.
  • Modifying automated messages sent via workflows without needing to resend a new message.

For example, if you sent a message with incorrect details, you can use this node to update that message's text directly on WhatsApp.

Properties

Name Meaning
Message ID The unique identifier of the message you want to edit.
Phone Number The recipient's phone number or your own number prefixed with "me:" to indicate your message.
New Message The updated text content that will replace the original message body.

Output

The node outputs JSON data representing the response from the DinastiAPI WhatsApp API after attempting to edit the message. This typically includes confirmation details about the edited message or error information if the operation failed.

No binary data is output for the "Edit Message" operation.

Dependencies

  • Requires an active connection to the DinastiAPI WhatsApp API.
  • Needs an API key credential configured in n8n to authenticate requests to DinastiAPI.
  • The node uses the /chat/send/edit endpoint of the DinastiAPI.

Troubleshooting

  • Common issues:

    • Invalid or missing Message ID: Ensure the message ID corresponds to a message you have permission to edit.
    • Incorrect phone number format: Use the correct international format or prefix with "me:" for your own messages.
    • API authentication errors: Verify that the API key credential is correctly set up and has necessary permissions.
  • Error messages:

    • "Message not found": The specified message ID does not exist or is inaccessible.
    • "Unauthorized": Authentication failed; check API credentials.
    • "Invalid phone number": The phone number format is incorrect or unsupported.

Resolving these usually involves verifying input parameters and ensuring valid API credentials.

Links and References

Discussion