From 9aca2a8c7b55b5d1cbfd1a589e52ac401fda24df Mon Sep 17 00:00:00 2001 From: Yasir Aris M Date: Sat, 7 Sep 2024 11:23:39 +0700 Subject: [PATCH] Fix Telegraph CMD Signed-off-by: Yasir Aris M --- misskaty/plugins/paste.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/misskaty/plugins/paste.py b/misskaty/plugins/paste.py index eeccda5b..4e0f9735 100644 --- a/misskaty/plugins/paste.py +++ b/misskaty/plugins/paste.py @@ -84,6 +84,8 @@ async def telegraph_paste(_, message): msg = await message.reply_msg("`Pasting to Telegraph...`") data = "" limit = 1024 * 1024 + if reply and not (reply.text or reply.document): + return await msg.edit_msg("**Reply to a text message or file to paste to Telegraph.**") if reply and reply.document: if reply.document.file_size > limit: return await msg.edit_msg(