mirror of
https://github.com/yasirarism/MissKatyPyro.git
synced 2025-12-29 09:44:50 +00:00
Fix Telegraph CMD
Signed-off-by: Yasir Aris M <git@yasirdev.my.id>
This commit is contained in:
parent
68c2385d89
commit
9aca2a8c7b
1 changed files with 2 additions and 0 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Reference in a new issue