@getdial/sdk - v0.21.0
    Preparing search index...

    Type Alias SendMessageMedia

    SendMessageMedia:
        | string
        | { path: string }
        | { contentType: string; data: Uint8Array; filename?: string }

    One media attachment on an outbound message:

    • string — a publicly reachable http(s) URL; Dial downloads and re-hosts it.
    • { path } — a local file, uploaded as multipart; MIME type inferred from the extension.
    • { data, contentType } — raw bytes, uploaded as multipart; the MIME type is required.