setCharacterLimit

fun setCharacterLimit(characterLimit: Int): ChatConfigError?

Sets the maximum number of characters allowed in a TEXT message.

  • The default and maximum character limit is 2000 characters.

  • Passing -1 sets the limit to 2000 characters.

  • Value must be greater than 0 and <= 2000, except -1.

Return

A ChatConfigError if the character limit is invalid, null if successful.

Parameters

characterLimit

The maximum number of characters allowed in a message.