From 967f25796c0e315e4c44eaab39780dd5d2614494 Mon Sep 17 00:00:00 2001 From: Harsh <65716674+Harsh-br0@users.noreply.github.com> Date: Sun, 17 Jan 2021 16:46:06 +0530 Subject: [PATCH] Fix strikethrough message entity unparsing (#598) --- pyrogram/parser/html.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyrogram/parser/html.py b/pyrogram/parser/html.py index 4f4309de..ac9984f6 100644 --- a/pyrogram/parser/html.py +++ b/pyrogram/parser/html.py @@ -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"" elif entity_type in ("code", "pre", "blockquote"):