Skip to main content

Send a media file (image, video, document, audio) directly to a specified instance.

POST 

/message/sendMediaFile/:instanceName

Send a media file (image, video, document, audio) directly to a specified instance.

Request

Path Parameters

    instanceName stringrequired

    The name of the instance to which the media file should be sent.

    Example: codechat

Body

required
    number stringrequired

    The recipient's phone number.

    caption string

    Caption to accompany the media (optional).

    attachment binaryrequired

    The media file to be sent.

    mediatype stringrequired

    Possible values: [image, document, video, audio]

    Type of the media content.

    presence string

    Possible values: [composing, recording, paused]

    Indicates the sender's action/status (optional).

    delay integer

    Delay time before sending the message (optional).

Responses

Successful response

Schema
    any
Loading...