mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-11 09:55:21 +00:00
Use User.full_name instead User.mention in User.get_mention() method.
This commit is contained in:
parent
b0e62b0522
commit
67bcfb4772
1 changed files with 1 additions and 1 deletions
|
|
@ -69,7 +69,7 @@ class User(base.TelegramObject):
|
|||
as_html = True
|
||||
|
||||
if name is None:
|
||||
name = self.mention
|
||||
name = self.full_name
|
||||
if as_html:
|
||||
return markdown.hlink(name, self.url)
|
||||
return markdown.link(name, self.url)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue