From d5f70423a3a2fed7bccc4586129e004781c45283 Mon Sep 17 00:00:00 2001 From: Dan Elkouby Date: Thu, 8 Nov 2018 11:00:19 +0000 Subject: [PATCH] stdplugins/who: link user by ID --- stdplugins/who.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stdplugins/who.py b/stdplugins/who.py index 309008f..e4f5349 100644 --- a/stdplugins/who.py +++ b/stdplugins/who.py @@ -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)