Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[v2] Blockquote is incorrectly parsed #4425

Open
3 tasks done
xplus2g4 opened this issue Aug 3, 2024 · 1 comment
Open
3 tasks done

[v2] Blockquote is incorrectly parsed #4425

xplus2g4 opened this issue Aug 3, 2024 · 1 comment

Comments

@xplus2g4
Copy link

xplus2g4 commented Aug 3, 2024

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

  • The error is in the library's code, and not in my own.
  • I have searched for this issue before posting it and there isn't an open duplicate.
  • I ran pip install -U https://github.com/LonamiWebs/Telethon/archive/v1.zip and triggered the bug in the latest version.
@xplus2g4
Copy link
Author

xplus2g4 commented Aug 3, 2024

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]).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant