From 8da22863897c9fac06927c3753ac9e96bce8924d Mon Sep 17 00:00:00 2001 From: Alex Root Junior Date: Sun, 14 Aug 2022 15:55:39 +0300 Subject: [PATCH] Fixed custom emoji typing in parser --- 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 30a5889d..36e41219 100644 --- a/aiogram/utils/text_decorations.py +++ b/aiogram/utils/text_decorations.py @@ -55,7 +55,7 @@ class TextDecoration(ABC): if entity.type == "text_link": return self.link(value=text, link=cast(str, entity.url)) if entity.type == "custom_emoji": - return self.custom_emoji(value=text, custom_emoji_id=entity.custom_emoji_id) + return self.custom_emoji(value=text, custom_emoji_id=cast(str, entity.custom_emoji_id)) return self.quote(text)