Sends Message from a Bot.

The data property has the optional attributes as below:

Attribute

Description

metadata

The metadata attribute contains any valid JSON data with additional information about message.

attachments

The attachments attribute contains JSON array of attachment objects.
For e.g.

[   
  {
     “name”: “logo.png”,
      “extension”: “png”,
      “size”: 350,
      “mimeType”: “image/png”,
      “url”: “https://www.cometchat.com/logo.png"
   }
]

text

The text attribute contains a text message to be sent.

customData

The customData attribute contains any valid JSON data and it is required for message with custom category.

Language
URL
Response
Click Try It! to start a request and see the response here!