Send media (image, video, document) - robust for base64
send_media(
client,
number,
mediatype,
mimetype,
caption = NULL,
media,
file_name,
delay = NULL,
link_preview = NULL,
verbose = FALSE
)A named list parsed from the Evolution API JSON response.
The list typically contains message metadata (IDs, timestamps, queue info),
and any additional fields defined by the API for media messages.
The HTTP status code is stored in attr(result, "http_status").
This return value represents the server acknowledgement of the media upload/send.
An evo_client() object.
Character. Recipient in E.164 format (e.g., "+5581999...").
One of "image", "video", "document".
e.g., "image/png", "video/mp4", "application/pdf".
Caption text (optional).
Can be: (a) HTTP/HTTPS URL; (b) raw base64 (no prefix); (c) base64 in the format data:*;base64,<…>; (d) local file path.
Suggested filename (consistent with the mimetype).
Integer (ms). Optional presence delay before sending.
Logical. Enable URL link preview.
Detailed log output (cli + req_verbose()).