HTMLStreamParser
ref / parse-mode / HTMLStreamParser
Parses a stream of HTML-style Telegram Bot API characters and generates a FormattedString.
Methods
add
ts
add(text: string): void;
Add a chunk of HTML text to the parser.
toFormattedString
ts
toFormattedString(): FormattedString;
Build and return a FormattedString from the accumulated text and entities.