From 6403e6d406678b091d6612b43dc16780ed2502db Mon Sep 17 00:00:00 2001 From: Yasir Aris M Date: Fri, 6 Sep 2024 22:10:07 +0700 Subject: [PATCH] Update paste.py --- misskaty/plugins/paste.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misskaty/plugins/paste.py b/misskaty/plugins/paste.py index deace5b6..7e9b521d 100644 --- a/misskaty/plugins/paste.py +++ b/misskaty/plugins/paste.py @@ -417,7 +417,7 @@ async def imgbb_upload(_, message): return await message.edit_msg( f"**Reply to a photo with /{message.command[0]} command to upload image on ImgBB.**", del_in=6 ) - if not (r.photo or (r.document and r.document.mime_type.startswith("image"))): + if not (reply.photo or (reply.document and reply.document.mime_type.startswith("image"))): return await message.reply_msg("This command only support upload photo") msg = await message.reply_msg("`Uploading image to ImgBB...`") if message.from_user: