From 1dd6e63d6a3ab9fa42dc6f29ca3acd83d2734108 Mon Sep 17 00:00:00 2001 From: Lonami Date: Mon, 20 May 2019 09:53:16 +0200 Subject: [PATCH] Use HTML in who --- stdplugins/who.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/stdplugins/who.py b/stdplugins/who.py index e4f5349..cea0cd9 100644 --- a/stdplugins/who.py +++ b/stdplugins/who.py @@ -14,6 +14,7 @@ async def _(event): else: msg = await event.message.get_reply_message() if msg.forward: + # FIXME forward privacy memes who = await borg.get_entity( msg.forward.from_id or msg.forward.channel_id) else: @@ -21,7 +22,7 @@ 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}](tg://user?id={who.id})" + who_string += f" (@{who.username})" + who_string += f", #{who.id}" - await event.edit(who_string) + await event.edit(who_string, parse_mode='html')