translate User Message
fun BaseChannel.translateUserMessage(userMessage: UserMessage, targetLanguages: List<String>, handler: ResultHandler<UserMessage>?)
Translates a user message.
Since
4.15.0
Parameters
user Message
User message to translate.
target Languages
Target language codes (for example "es" for spanish) the message will be translated to.
handler
Callback handler.
suspend fun BaseChannel.translateUserMessage(userMessage: UserMessage, targetLanguages: List<String>): UserMessage
Deprecated
As of 4.17.0, replaced with awaitTranslateUserMessage(userMessage, targetLanguages).
Replace with
awaitTranslateUserMessage(userMessage, targetLanguages)
Content copied to clipboard
Translate user message
Return
The user message
Since
4.15.0
Parameters
user Message
The user message to translate
target Languages
Target language codes (for example "es" for spanish) the message will be translated to.