Spaces:
Runtime error
Runtime error
Jishu Developer
commited on
Update start.py
Browse files- plugins/start.py +3 -3
plugins/start.py
CHANGED
@@ -89,8 +89,7 @@ async def start_command(client: Client, message: Message):
|
|
89 |
pass
|
90 |
|
91 |
|
92 |
-
|
93 |
-
await message.reply_text(f"Video / File Will Be Deleted After {file_auto_delete}. Please Forward Them Anywhere To Save Them.")
|
94 |
asyncio.create_task(delete_files(madflix_msgs, client))
|
95 |
# await asyncio.sleep(FILE_AUTO_DELETE)
|
96 |
|
@@ -232,7 +231,8 @@ async def delete_files(messages, client):
|
|
232 |
await client.delete_messages(chat_id=msg.chat.id, message_ids=[msg.id])
|
233 |
except Exception as e:
|
234 |
print(f"The attempt to delete the media {msg.id} was unsuccessful: {e}")
|
235 |
-
await client.send_message(messages[0].chat.id, "Your Video / File Is Successfully Deleted ✅")
|
|
|
236 |
|
237 |
|
238 |
|
|
|
89 |
pass
|
90 |
|
91 |
|
92 |
+
k = await client.send_message(chat_id = message.from_user.id, text=f"<b>❗️ <u>IMPORTANT</u> ❗️</b>\n\nThis Video / File Will Be Deleted In {file_auto_delete} (Due To Copyright Issues).\n\n📌 Please Forward This Video / File To Somewhere Else And Start Downloading There.")
|
|
|
93 |
asyncio.create_task(delete_files(madflix_msgs, client))
|
94 |
# await asyncio.sleep(FILE_AUTO_DELETE)
|
95 |
|
|
|
231 |
await client.delete_messages(chat_id=msg.chat.id, message_ids=[msg.id])
|
232 |
except Exception as e:
|
233 |
print(f"The attempt to delete the media {msg.id} was unsuccessful: {e}")
|
234 |
+
# await client.send_message(messages[0].chat.id, "Your Video / File Is Successfully Deleted ✅")
|
235 |
+
await k.edit_text("Your Video / File Is Successfully Deleted ✅")
|
236 |
|
237 |
|
238 |
|