Zalo Tương Tác icon

Zalo Tương Tác

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

Message → Gửi tin nhắn

AI-generated

Summary

Send a message to a specified Zalo user or group chat with optional text, attachments, styles, mentions, quoted messages, urgency, and message lifetime.

Inputs

  • User/Group Id (required) — The ID of the Zalo User or Group to send the message to.
  • Thread Type (required) — The type of the conversation: User (0) or Group (1).
  • Message — The textual content of the message.
  • Attachments — One or more file attachments specified via file paths.
  • Attachments URLs — Comma-separated list of URLs pointing to files to attach.
  • Styles — List of text styles (e.g., bold, italic, color) applied to specific parts of the message, defined by start index and length.
  • Urgency (required) — Priority level of the message: Default (0), Important (1), Urgent (2).
  • Mentions — User mentions inside the message specified by position, user ID, and length.
  • Quote Message — A JSON object representing a quoted message to include.
  • Message Lifetime — Duration for which the message will exist before expiring.

Output shape

a single record containing the result of the message sending operation

The output includes details about the sent message or an error if the operation failed.

Examples

Example 1: Send a text message with attachments and styling to a user chat

Set User/Group Id to recipient ID, Thread Type to User, fill in Message text, add attachments via file paths or URLs, define styles as needed, set urgency level, optionally mention users, and specify message lifetime.

Links

Discussion