Zalo Send Message icon

Zalo Send Message

Gửi tin nhắn qua API Zalo sử dụng kết nối đăng nhập bằng cookie

Zalo Send Message

AI-generated

Summary

Send text messages through the Zalo API to a specified thread, supporting user or group recipients, message urgency levels, quoted messages, user mentions, attachments via URLs, and message formatting styles.

Inputs

  • Thread ID (required) — The ID of the thread (chat) to send the message to, e.g. user or group chat
  • Type (required) — The type of message recipient: 0 for individual user, 1 for group chat
  • Message (required) — The text content of the message to send
  • Urgency — The urgency level of the message, selectable as Default, Important, or Urgent
  • Quote Message — Optional quoted message details including message ID, sender ID, and content
  • Mentions — Optional array of user mentions specifying user ID, position, and length within the message text
  • Attachments — Optional list of attachments specified by publicly accessible image/file URLs
  • Styles (JSON) — Optional JSON array defining text formatting styles for the message, e.g. bold segments

Output shape

a list of JSON objects each representing the send message result for an input item

Each output JSON includes a success boolean, the API response, the thread ID and type, and the detailed message content sent. On failure, includes error messages if 'continue on fail' is enabled; otherwise raises error.

Links

Discussion