Translate a message into other languages
Translates a message into specific languages. Translation only works for text messages, whose type
is MESG.
Note: Message translation is powered by Google Cloud Translation API recognition engine. Find language codes supported by the translation engine or visit the Language Support page in Google Cloud Translation.
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. Acceptable values are open_channels and group_channels. |
channel_url | string | Specifies the URL of the target channel. |
message_id | long | Specifies the unique ID of the message to translate. |
Request body
The following table lists the properties of an HTTP request that this action supports.
Required
Property name | Type | Description |
---|---|---|
target_langs | array of strings | Specifies an array of one or more codes of languages to translate the message. |
Response
If successful, this action returns a message resource in the response body.
In the case of an error, an error object is returned. A detailed list of error codes is available here.