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)