mirror of
https://github.com/eternnoir/pyTelegramBotAPI.git
synced 2023-08-10 21:12:57 +03:00
Merge pull request #1183 from SwissCorePy/master
Fixed a bug in `user_link`
This commit is contained in:
commit
74c4ab2f04
@ -303,7 +303,7 @@ def user_link(user, include_id: bool=False) -> str:
|
||||
"""
|
||||
name = escape(user.first_name)
|
||||
return (f"<a href='tg://user?id={user.id}'>{name}</a>"
|
||||
+ f" (<pre>{user.id}</pre>)" if include_id else "")
|
||||
+ (f" (<pre>{user.id}</pre>)" if include_id else ""))
|
||||
|
||||
|
||||
# def quick_markup(values: Dict[str, Dict[str, Any]], row_width: int=2):
|
||||
|
Loading…
Reference in New Issue
Block a user