Use User.full_name instead User.mention in User.get_mention() method.

This commit is contained in:
Alex Root Junior 2018-01-27 12:12:54 +02:00
parent b0e62b0522
commit 67bcfb4772

View file

@ -69,7 +69,7 @@ class User(base.TelegramObject):
as_html = True as_html = True
if name is None: if name is None:
name = self.mention name = self.full_name
if as_html: if as_html:
return markdown.hlink(name, self.url) return markdown.hlink(name, self.url)
return markdown.link(name, self.url) return markdown.link(name, self.url)