sendTextMessage

abstract fun sendTextMessage(    text: CharSequence,     msgType: String = MessageType.MSGTYPE_TEXT,     autoMarkdown: Boolean = false,     additionalContent: Content? = null): Cancelable

Method to send a text message asynchronously. The text to send can be a Spannable and contains special spans (MatrixItemSpan) that will be translated by the sdk into pills.

Return

a Cancelable

Parameters

text

the text message to send

msgType

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

autoMarkdown

If true, the SDK will generate a formatted HTML message from the body text if markdown syntax is present

additionalContent

additional content to put in the event content