Spaces:
Paused
Paused
Jishu Developer
commited on
Update start.py
Browse files- plugins/start.py +1 -0
plugins/start.py
CHANGED
|
@@ -95,6 +95,7 @@ async def start_command(client: Client, message: Message):
|
|
| 95 |
|
| 96 |
for msg in messages:
|
| 97 |
try:
|
|
|
|
| 98 |
await client.delete_messages(chat_id=msg.chat.id, message_ids=[msg.id])
|
| 99 |
except Exception as e:
|
| 100 |
print(f"The attempt to delete the media {msg.id} was unsuccessful: {e}")
|
|
|
|
| 95 |
|
| 96 |
for msg in messages:
|
| 97 |
try:
|
| 98 |
+
asyncio.create_task
|
| 99 |
await client.delete_messages(chat_id=msg.chat.id, message_ids=[msg.id])
|
| 100 |
except Exception as e:
|
| 101 |
print(f"The attempt to delete the media {msg.id} was unsuccessful: {e}")
|