From b40588b4c0795c377e04b008b2fa7dcdf52980cb Mon Sep 17 00:00:00 2001 From: Suren Khorenyan Date: Sun, 24 Nov 2024 17:40:47 +0300 Subject: [PATCH] fix tg-emoji closing tag: use constant --- aiogram/utils/text_decorations.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}"