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