From bba43fef3ee25c0fde3c6541a6b993a01f454ddb Mon Sep 17 00:00:00 2001 From: blank X Date: Sat, 26 Dec 2020 22:47:22 +0700 Subject: [PATCH] Show bio for users in .info --- sukuinote/plugins/info.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sukuinote/plugins/info.py b/sukuinote/plugins/info.py index 1132c8c..856cbfc 100644 --- a/sukuinote/plugins/info.py +++ b/sukuinote/plugins/info.py @@ -60,8 +60,8 @@ async def info(client, message): text_ping += f'\nLinked Chat: {_generate_sexy(entity.linked_chat, False)} [{entity.linked_chat.id}]' text_unping += f'\nLinked Chat: {_generate_sexy(entity.linked_chat, False)} [{entity.linked_chat.id}]' if entity.description: - text_ping += f'\nDescription:\n{html.escape(entity.description)}' - text_unping += f'\nDescription:\n{html.escape(entity.description.replace("@", "@" + ZWS))}' + text_ping += f'\nDescription:\n{html.escape(entity.description or entity.bio)}' + text_unping += f'\nDescription:\n{html.escape((entity.description or entity.bio).replace("@", "@" + ZWS))}' reply = await message.reply_text(text_unping, disable_web_page_preview=True) if text_ping != text_unping: try: