From 686cd7f3005d04ecc5df2a98acf2d34d1290ebd6 Mon Sep 17 00:00:00 2001 From: Yasir Aris M Date: Fri, 6 Sep 2024 22:01:41 +0700 Subject: [PATCH] Fix typo --- misskaty/plugins/paste.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/misskaty/plugins/paste.py b/misskaty/plugins/paste.py index 7e7e9927..bf951d88 100644 --- a/misskaty/plugins/paste.py +++ b/misskaty/plugins/paste.py @@ -417,8 +417,8 @@ 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 reply.photo or not reply.document.mime_type.startswith("image"): - return await messsage.reply_msg("This command only support upload photo") + if not reply.photo and not 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: if message.from_user.username: