sendFormattedTextMessage

abstract fun sendFormattedTextMessage(text: String, formattedText: String, msgType: String = MessageType.MSGTYPE_TEXT, additionalContent: Content? = null): Cancelable

Method to send a text message with a formatted body.

Return

a Cancelable

Parameters

text

the text message to send

formattedText

The formatted body using MessageType#FORMAT_MATRIX_HTML

msgType

the message type: MessageType.MSGTYPE_TEXT (default) or MessageType.MSGTYPE_EMOTE

additionalContent

additional content to put in the event content