MegaAPI icon

MegaAPI

Interact with MegaAPI WhatsApp service

Message → Quote Message

AI-generated

Overview

This node operation sends a text message as a reply or quote to an existing WhatsApp message. It is useful when you want to respond directly to a specific message in a conversation, making the original message appear quoted above your new text. This is commonly used in customer support, group chats, or any scenario where context is important for the reply.

Use Case Examples

  1. Replying to a customer's question by quoting their original message to provide clear context.
  2. Responding in a group chat by quoting a specific message to avoid confusion.

Properties

Name Meaning
To (Contact) The WhatsApp contact to send the quoted message to, formatted as phone_number@s.whatsapp.net (e.g., 551199999999@s.whatsapp.net).
Text The text message to send as a reply or quote to the original message.
Key (JSON) The message key object containing remoteJid, fromMe, and ID fields to identify the message to quote.
Message (JSON) The original message object containing the message content and metadata to quote.

Output

JSON

  • sentMessage - The response data confirming the quoted message was sent successfully.

Dependencies

  • Requires an API key credential for MegaAPI WhatsApp service authentication.

Troubleshooting

  • Ensure the 'To' contact is correctly formatted as phone_number@s.whatsapp.net; incorrect formatting will cause message sending to fail.
  • The 'Key' and 'Message' JSON objects must correctly represent the original message to quote; invalid or incomplete data will result in errors.
  • Common error messages include 'Unknown message operation' if the operation parameter is incorrect, or API authentication errors if credentials are missing or invalid.

Discussion