From 57a0a8122a23e34eb916f28f10ba1e0acb71398b Mon Sep 17 00:00:00 2001 From: xtaodada Date: Thu, 28 Jul 2022 20:06:45 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=91=EF=B8=8F=20hotfix:=20recovery=20no?= =?UTF-8?q?=20reply=20bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pagermaid/modules/backup.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pagermaid/modules/backup.py b/pagermaid/modules/backup.py index d0eeb60..f55a1e2 100644 --- a/pagermaid/modules/backup.py +++ b/pagermaid/modules/backup.py @@ -68,6 +68,8 @@ async def backup(message: Message): async def recovery(message: Message): reply = message.reply_to_message + if not reply: + return await message.edit(lang('recovery_file_error')) if not reply.document: return await message.edit(lang('recovery_file_error'))