mirror of
https://github.com/pyrogram/pyrogram
synced 2025-09-01 06:45:39 +00:00
Fix strikethrough message entity unparsing (#598)
This commit is contained in:
@@ -153,7 +153,7 @@ class HTML:
|
|||||||
start = entity.offset
|
start = entity.offset
|
||||||
end = start + entity.length
|
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]}>"
|
start_tag = f"<{entity_type[0]}>"
|
||||||
end_tag = f"</{entity_type[0]}>"
|
end_tag = f"</{entity_type[0]}>"
|
||||||
elif entity_type in ("code", "pre", "blockquote"):
|
elif entity_type in ("code", "pre", "blockquote"):
|
||||||
|
Reference in New Issue
Block a user