Add a reaction
Adds a specific reaction to a message.
Note: Currently, this action is only available in group channels.
HTTP request
Parameters
The following table lists the parameters that this action supports.
Required
Parameter name | Type | Description |
---|---|---|
channel_type | string | Specifies the type of the channel. Currently, only the value of |
channel_url | string | Specifies the URL of the target channel. |
message_id | long | Specifies the unique ID of the message to add a reaction to. |
Request body
The following table lists the properties of an HTTP request that this action supports.
Required
Property name | Type | Description |
---|---|---|
user_id | string | Specifies the ID of the user who reacts to the message. |
reaction | string | Specifies the unique key of the reaction to be added to the message. The length is limited to 30 characters. |
Response
If successful, this action returns the information about the reaction event in the response body.
List of response properties
Property name | Type | Description |
---|---|---|
user_id | string | The ID of the user who reacted to the message. |
operation | string | The operation type of the request. Valid values are |
success | boolean | Indicates whether the reaction operation succeeded or failed. The value of |
reaction | string | The unique key of the reaction. |
updated_at | long | The time when the message reaction was updated in Unix milliseconds format. This appears only when the |
In the case of an error, an error object is returned. A detailed list of error codes is available here.