Fix html user mention entity parse

This commit is contained in:
Arseny Boykov 2019-09-03 02:26:23 +03:00 committed by GitHub
parent 7aa6dc4efe
commit 1af668f1e0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -73,7 +73,7 @@ class MessageEntity(base.TelegramObject):
return markdown.hlink(entity_text, self.url)
return markdown.link(entity_text, self.url)
elif 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