LonamiWebs / Telethon

Pure Python 3 MTProto API Telegram client library, for bots too!
https://docs.telethon.dev
MIT License
9.8k stars 1.39k forks source link

[v2] Blockquote is incorrectly parsed #4425

Open xplus2g4 opened 1 month ago

xplus2g4 commented 1 month ago

Code that causes the issue

client.send_message(chat, html="<blockquote>test</blockquote>")

Expected behavior

This should produce 'test' wrapped in blockquote

Actual behavior

This falls to produce quotes. <details /> (spoiler) worked normally.

Traceback

No response

Telethon version

2.0.0a0

Python version

3.12

Operating system (including distribution name and version)

macOS

Other details

No response

Checklist

xplus2g4 commented 1 month ago

On a side note: event.text_html will parse <blockquote>test</blockquote> to test (entities = []) while <details>test</details> to <details>test</details> (entities = [MessageEntitySpoiler]).