textOrNull

open fun textOrNull(): String?(source)

Returns the text content of the message if it's a text message, otherwise returns null.