Skip to content

Commit 2b6162d

Browse files
authored
Update batch.py
1 parent 17d5b1a commit 2b6162d

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

main/plugins/batch.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -99,12 +99,6 @@ async def run_batch(userbot, client, sender, link, _range):
9999
print(e)
100100
await client.send_message(sender, "Batch completed.")
101101
break
102-
try:
103-
await userbot.start()
104-
except Exception as e:
105-
print(e)
106-
await client.send_message(sender, f'{errorC}\n\n**Error:** {str(e)}')
107-
break
108102
try:
109103
await get_bulk_msg(userbot, client, sender, link, i)
110104
except FloodWait as fw:
@@ -113,7 +107,6 @@ async def run_batch(userbot, client, sender, link, _range):
113107
break
114108
await asyncio.sleep(fw.x + 5)
115109
await get_bulk_msg(userbot, client, sender, link, i)
116-
await userbot.stop()
117110
protection = await client.send_message(sender, f"Sleeping for `{timer}` seconds to avoid Floodwaits and Protect account!")
118111
await asyncio.sleep(timer)
119112
await protection.delete()

0 commit comments

Comments
 (0)