mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Merge pull request #205 from MrMrRobat/Fix-html-entity
Fix html user mention entity parse
This commit is contained in:
commit
24da65ef2a
1 changed files with 2 additions and 1 deletions
|
|
@ -67,7 +67,8 @@ class MessageEntity(base.TelegramObject):
|
|||
method = markdown.hlink if as_html else markdown.link
|
||||
return method(entity_text, self.url)
|
||||
if self.type == MessageEntityType.TEXT_MENTION and self.user:
|
||||
return self.user.get_mention(entity_text)
|
||||
return self.user.get_mention(entity_text, as_html=as_html)
|
||||
|
||||
return entity_text
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue