translateUserMessage

fun BaseChannel.translateUserMessage(userMessage: UserMessage, targetLanguages: List<String>, handler: ResultHandler<UserMessage>?)

Translates a user message.

Since

4.15.0

Parameters

userMessage

User message to translate.

targetLanguages

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)

Translate user message

Return

The user message

Since

4.15.0

Parameters

userMessage

The user message to translate

targetLanguages

Target language codes (for example "es" for spanish) the message will be translated to.