Changes
- HTML parse mode now decodes all HTML5 entities (named and numeric), maps
<br>to a newline, escapes special characters onunparse, and adds<tg-emoji>,tg://user?id=…mentions, expandable<blockquote>and<tg-date>— self-contained with zero dependencies. - The built-in
Loggeris now pluggable through ahandlerthat receives structured records{ level, message, error, date }, with default output unchanged. - Dead TL serialization diagnostics were removed and several circular dependencies untangled, with no public API changes.
Fixes
- File uploads and downloads work again after a
disconnect()→connect()reconnect cycle (#15). - Error stacks now route through the logger instead of being printed straight to the console past it (#14).
Upgrade
- Run:
npm i teleproto@latest