Interface TextEntity

Represents a part of the text that needs to be formatted in some unusual way.

interface TextEntity {
    @type: "textEntity";
    length: number;
    offset: number;
    type: TextEntityType;
}

Properties

Properties

@type: "textEntity"
length: number

Length of the entity, in UTF-16 code units.

offset: number

Offset of the entity, in UTF-16 code units.

Type of the entity.