text cut to max characters (default MAX_MESSAGE_VALUE_LENGTH), ending in "…" when cut; never inside a surrogate pair (cutText), so the message stays well-formed.
text
max
cutText
textcut tomaxcharacters (default MAX_MESSAGE_VALUE_LENGTH), ending in "…" when cut; never inside a surrogate pair (cutText), so the message stays well-formed.