post https://{appid}.api-{region}.cometchat.io/v3/bots//messages
Sends Message from a Bot.
For more details please visit here
Request sample:
POST /bots/:uid/messages HTTP/1.1
Content-type: application/json
Accept: application/json
{
"receiver": "string",
"receiverType": "string",
"category": "string",
"type": "string",
"data": {
"text": "string",
"metadata":{
"any key": "value pair",
},
"customData": {
"any key": "value pair",
},
"attachments": [{
"url": "string",
"name": "string",
"mimeType": "string"
, "extension": "string"
, "size": "string"
}]
},
"multipleReceivers": {
"uids": ["array of string UIDs"],
"guids": ["array of string GUIDs"]
},
"tags": ["array of strings"]
}