diff --git a/aiogram/types/chat.py b/aiogram/types/chat.py index 08d935e5..0d3947f6 100644 --- a/aiogram/types/chat.py +++ b/aiogram/types/chat.py @@ -77,6 +77,9 @@ class Chat(base.TelegramObject): return shift - self.id def get_mention(self, name=None, as_html=True) -> base.String: + if as_html is None and self.bot.parse_mode and self.bot.parse_mode.lower() == 'html': + as_html = True + if name is None: name = self.mention if as_html: