🚑️ hotfix: recovery no reply bug

This commit is contained in:
xtaodada 2022-07-28 20:06:45 +08:00
parent d0b25d41b7
commit 57a0a8122a
Signed by: xtaodada
GPG Key ID: 4CBB3F4FA8C85659

View File

@ -68,6 +68,8 @@ async def backup(message: Message):
async def recovery(message: Message): async def recovery(message: Message):
reply = message.reply_to_message reply = message.reply_to_message
if not reply:
return await message.edit(lang('recovery_file_error'))
if not reply.document: if not reply.document:
return await message.edit(lang('recovery_file_error')) return await message.edit(lang('recovery_file_error'))