getTextAsObject

open fun getTextAsObject(): Message.Text

Returns the content of the message as Text object. This method can be used to know the text and its format. Text would be one of html, markdown or plain text format. Depending on the message to get the text Text.getHtml or Text.getMarkdown or Text.getPlain needs to be used

Return

the content of the message.

Since

2.3.0