Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Name

Mandatory

Type

Description

type

Status
colourRed
titleyes

Status
titlestring

The type of the multimedia message. It can assume one of the following values:

  • IMAGE

  • DOCUMENT

  • AUDIO

  • VIDEO

content

Status
colourRed
titleyes

Status
titleobject

An object containing the following properies:

  • img: base64 of the image to sent send (only for IMAGE type)

  • document: base64 of the document to sent send (only for DOCUMENT type)

  • audio: base64 of the audio to send (only for AUDIO type)

  • video: base64 of the video to send (only for VIDEO type)

  • fileName: name of the document to send (file extension included)

  • caption: caption of the message (can be an empty string, only for IMAGE and DOCUMENT types)

  • documentType: file extension (one of the supported formats. See below for the supported formats)

replyTo

Status
titleno

Status
titlestring

Message ID you are replying to

Supported formats:

...

png

...

jpg

...

jpeg

...

pdf

...

xls

...

xlsx

...

doc

...

docx

...

ppt

...

Returns:

Type

Description

JS Promise

A Javascript Promise that returns the object sent without the base64 property

...