diff --git a/CHANGES/1608.misc.rst b/CHANGES/1608.misc.rst new file mode 100644 index 00000000..2641bb8c --- /dev/null +++ b/CHANGES/1608.misc.rst @@ -0,0 +1 @@ +Fixed closing tag for :code:`tg-emoji` in the :class:`aiogram.utils.text_decoration.HtmlDecoration`: use the same constant as for tag opening diff --git a/aiogram/utils/text_decorations.py b/aiogram/utils/text_decorations.py index 440fffa6..35f343d2 100644 --- a/aiogram/utils/text_decorations.py +++ b/aiogram/utils/text_decorations.py @@ -218,7 +218,7 @@ class HtmlDecoration(TextDecoration): return html.escape(value, quote=False) def custom_emoji(self, value: str, custom_emoji_id: str) -> str: - return f'<{self.EMOJI_TAG} emoji-id="{custom_emoji_id}">{value}' + return f'<{self.EMOJI_TAG} emoji-id="{custom_emoji_id}">{value}' def blockquote(self, value: str) -> str: return f"<{self.BLOCKQUOTE_TAG}>{value}"