Skip to content

Commit 967f257

Browse files
authored
Fix strikethrough message entity unparsing (pyrogram#598)
1 parent 2b3e5f2 commit 967f257

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pyrogram/parser/html.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ def unparse(text: str, entities: list):
153153
start = entity.offset
154154
end = start + entity.length
155155

156-
if entity_type in ("bold", "italic", "underline", "strike"):
156+
if entity_type in ("bold", "italic", "underline", "strikethrough"):
157157
start_tag = f"<{entity_type[0]}>"
158158
end_tag = f"</{entity_type[0]}>"
159159
elif entity_type in ("code", "pre", "blockquote"):

0 commit comments

Comments
 (0)