From 4a10e4b340df4de0ea537b07ce8e1ae292f20eaf Mon Sep 17 00:00:00 2001 From: iwumingz Date: Sat, 9 Apr 2022 16:51:36 +0800 Subject: [PATCH] Fix little error of chat name --- plugins/dc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/dc.py b/plugins/dc.py index 3ce47d4..691bd3b 100644 --- a/plugins/dc.py +++ b/plugins/dc.py @@ -11,5 +11,5 @@ async def dc(_: Client, msg: Message): dc_id = msg.reply_to_message.from_user.dc_id \ if _is_replied else msg.chat.dc_id name = msg.reply_to_message.from_user.mention(style="md") \ - if _is_replied else f"`{msg.chat.title}`" + if _is_replied else f"`{msg.chat.title or msg.chat.first_name}`" await msg.edit_text(get_dc_text(name, dc_id))