Zalo OA icon

Zalo OA

Tương tác với Zalo Official Account API

Zalo OA → Gửi Tin Nhắn Hình Ảnh Đến Người Dùng Ẩn Danh

AI-generated

Summary

Send an anonymous image message to a user in a specified conversation on Zalo Official Account by providing the anonymous user ID and conversation ID, specifying the image source as a URL or a previously uploaded image ID.

Inputs

  • Anonymous ID (required) — The anonymous user identifier representing the recipient.
  • Conversation ID (required) — The conversation identifier where the message will be sent.
  • Loại Hình Ảnh (Image Type) (required) — Select the type of image source; either a URL link or an image ID for a previously uploaded image.
  • URL Hình Ảnh (Image URL) (required) — The URL of the image to send if the image type is URL.
  • ID Hình Ảnh (Image ID) (required) — The ID of the image already uploaded to Zalo OA if the image type is image ID.

Output shape

a JSON object representing the API response from Zalo OA after sending the message

The output contains the raw JSON response from the Zalo OA API indicating success or failure details. The operation requires valid OA access tokens and correct anonymous and conversation IDs. Errors in sending the message will be included in the response JSON.

Examples

Example 1: Send an anonymous image message using an image URL

Set Anonymous ID and Conversation ID, choose Image Type as URL, and provide the Image URL to send an anonymous image message.

Example 2: Send an anonymous image message using an uploaded image ID

Set Anonymous ID and Conversation ID, choose Image Type as ID, and provide the Image ID of the uploaded image to send an anonymous image message.

Discussion