Spaces:
Paused
Paused
Jishu Developer
commited on
Update start.py
Browse files- plugins/start.py +3 -1
plugins/start.py
CHANGED
|
@@ -61,7 +61,7 @@ async def start_command(client: Client, message: Message):
|
|
| 61 |
return
|
| 62 |
await temp_msg.delete()
|
| 63 |
|
| 64 |
-
madflix_msgs = []
|
| 65 |
|
| 66 |
for msg in messages:
|
| 67 |
|
|
@@ -90,6 +90,8 @@ async def start_command(client: Client, message: Message):
|
|
| 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, k))
|
| 94 |
|
| 95 |
# for madflix_msg in madflix_msgs:
|
|
|
|
| 61 |
return
|
| 62 |
await temp_msg.delete()
|
| 63 |
|
| 64 |
+
madflix_msgs = [] # List to keep track of sent messages
|
| 65 |
|
| 66 |
for msg in messages:
|
| 67 |
|
|
|
|
| 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 |
+
|
| 94 |
+
# Schedule the file deletion
|
| 95 |
asyncio.create_task(delete_files(madflix_msgs, client, k))
|
| 96 |
|
| 97 |
# for madflix_msg in madflix_msgs:
|