2
0
mirror of https://github.com/pyrogram/pyrogram synced 2025-08-31 06:16:06 +00:00

Fix strikethrough message entity unparsing (#598)

This commit is contained in:
Harsh
2021-01-17 16:46:06 +05:30
committed by GitHub
parent 2b3e5f2b0a
commit 967f25796c

View File

@@ -153,7 +153,7 @@ class HTML:
start = entity.offset
end = start + entity.length
if entity_type in ("bold", "italic", "underline", "strike"):
if entity_type in ("bold", "italic", "underline", "strikethrough"):
start_tag = f"<{entity_type[0]}>"
end_tag = f"</{entity_type[0]}>"
elif entity_type in ("code", "pre", "blockquote"):