Actions5
- Message Actions
- Reaction Actions
Message → Send Attachment
AI-generatedSummary
Send a file or image attachment with an optional caption to a specified Zalo user or group chat.
Inputs
- Thread ID (required) — The ID of the recipient user or group chat to which the attachment will be sent.
- Thread Type — Specifies whether the recipient is a User (direct message) or a Group chat; defaults to User.
- Message (optional) — An optional text caption to accompany the attachment.
- File Path (required) — Absolute file path to the local file (such as an image or PDF) to be sent as the attachment.
Output shape
a list of JSON objects, each indicating success and containing details of the sent message including the thread information and any response from the API
The operation processes each input item individually and returns an array of results corresponding to each item. On success, the result includes a success flag, resource, operation, threadId, and any API-specific return data. On failure, the result may contain an error message if continueOnFail is enabled; otherwise, it throws an error.
Examples
Example 1: Send an image file with caption to a group chat
Thread ID set to the group chat ID, Thread Type set to 'Group', File Path to the image location, and optional Message to provide context.