Skip to main content

validate_text_entities

Function validate_text_entities 

Source
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).