pub fn validate_text_entities(
entities: &[TextEntity],
text_char_count: usize,
) -> Result<()>Expand description
Validate text entities: at most MAX_TEXT_ENTITIES, each must be SPOILER
type, and offsets must be non-negative (enforced by usize).