stdplugins/who: link user by ID

This commit is contained in:
Dan Elkouby 2018-11-08 11:00:19 +00:00
parent beacc8c305
commit d5f70423a3
1 changed files with 1 additions and 1 deletions

View File

@ -22,6 +22,6 @@ async def _(event):
who_string = utils.get_display_name(who)
if isinstance(who, (types.User, types.Channel)) and who.username:
who_string += f" (@{who.username})"
who_string += f", #{who.id}"
who_string += f", [#{who.id}](tg://user?id={who.id})"
await event.edit(who_string)