Skip to main content

Send message/event to bot

Send message or event to a bot and synchronously receive responses.

Request Body REQUIRED
botId string REQUIRED

The ID of the bot receiving the message or event

sender string REQUIRED

The sender ID of the message

data object REQUIRED

The payload of the message

message string

The message content (required if sending a message)

file string

URL of the file to be sent

image string

URL of the image to be sent

video string

URL of the video to be sent

event object

The event data. Required to send event to the bot

code string

The code identifying the event. This is required to send event details to bot

data object

The data associated with the event

Responses
200

A successful response