Mezon Send Message Advance icon

Mezon Send Message Advance

Send message to Mezon

Overview

This node, "Mezon Send Message Advance," is designed to send messages to the Mezon platform. It supports advanced message features such as referencing previous messages, including mentions, attachments, and controlling message visibility (public or not). This node is useful in scenarios where automated messaging to specific clans and channels on Mezon is required, for example, sending announcements, replies, or notifications within a clan's communication channel.

Practical examples:

  • Sending a public announcement message to a clan's main channel.
  • Replying to a specific message by referencing it, including mentions of users.
  • Sending messages with attachments like images or files to a private or public channel.

Properties

Name Meaning
Clan ID The identifier of the clan where the message will be sent.
Channel ID The identifier of the channel within the clan to send the message to.
Mode Numeric mode setting for the message (specific meaning depends on Mezon API, default is 2).
Channel Message Content The content of the message to send, provided as JSON.
Mentions JSON array specifying users or entities to mention in the message.
Attachments JSON array containing any attachments (e.g., images, files) to include with the message.
Is Public Boolean flag indicating if the message should be public (true) or private (false).
Reference JSON object representing a message reference to reply to or link with, including sender and content info.

Output

The node outputs an array of objects, each containing an empty JSON object {} per input item processed. The output does not contain detailed response data from the Mezon API but confirms that the message sending process was executed.

If binary data were involved, it would typically represent attachments or media, but this node handles attachments as JSON input only.

Dependencies

  • Requires the Mezon SDK (mezon-sdk) to interact with the Mezon platform.
  • Needs valid credentials providing an API key, host, and port to authenticate with Mezon.
  • The node authenticates with Mezon before sending messages and closes the connection afterward.

Troubleshooting

  • Authentication errors: Ensure the API key credential and connection details (host, port) are correct and active.
  • Empty or invalid message content: Verify that the content property is properly formatted JSON and not empty.
  • Invalid references: If using the Reference property, ensure it contains all required fields (message_id, sender_id, etc.) correctly; otherwise, the message may fail to send or not link properly.
  • Network issues: Connection failures to Mezon host/port can cause errors; check network accessibility and firewall settings.
  • Mode parameter misuse: The meaning of the mode number is dependent on Mezon API; using unsupported values might lead to unexpected behavior.

Links and References

Discussion