Send a bot message
Sends a bot message to a group channel.
Note: Bots can send both text and file messages.
HTTP request
Parameters
The following table lists the parameters that this action supports.
Required
| Parameter name | Type | Description | 
|---|---|---|
| bot_userid | string | Specifies the unique ID of a bot. | 
Request body
The following table lists the properties of an HTTP request that this action supports.
Properties
| Required | Type | Description | 
|---|---|---|
| message | string | Specifies the content of the message sent by the bot. | 
| channel_url | string | Specifies the URL of the channel that the message is sent to. | 
| message_type | string | Specifies the type of the message. The value of  | 
| file | string | When sending a single file with a message, specifies the data of the file to upload to the Sendbird server in raw binary format. When sending a request containing a file, change the value of the  | 
| Optional | Type | Description | 
|---|---|---|
| custom_type | string | Specifies a custom message type which is used for message grouping. The length is limited to 128 characters. | 
| data | string | Specifies additional message information such as custom font size, font type, or  | 
| send_push | boolean | Determines whether to send a push notification for a message to the members of the channel. (Default:  | 
| mentioned | array of strings | Specifies an array of IDs of users who receive a notification for the message. | 
| mark_as_read | boolean | Determines whether to mark the message as read for the bot. If set to  | 
| dedup_id | string | Specifies the unique ID of a message to prevent transferring duplicate message data to a channel. | 
| created_at | long | Specifies the time that the message was sent in Unix milliseconds format. | 
| file.name | string | For a  | 
| file.size | int | For a  | 
| file.type | string | For a  | 
Response
If successful, this action returns a nested message object sent by the bot in the response body.
In the case of an error, an error object is returned. A detailed list of error codes is available here.