textContent

open fun textContent(separator: String): String(source)

Extracts and concatenates the textual content from all MessagePart.Text elements in the message.

Return

A single string with the concatenated text content of all MessagePart.Text elements, separated by the specified delimiter.

Parameters

separator

The delimiter used to join the text content of the parts. Default is "\n".


Extracts and concatenates the textual content from all MessagePart.Text elements in the message. Messages are joined by a newline character ("\n").

Return

A single string with the concatenated text content of all MessagePart.Text elements, separated by a newline character.