From 306d9ba96da492dc2f1cd93f0283cc370d91d564 Mon Sep 17 00:00:00 2001 From: Satyamguru <154254086+Satyamguru@users.noreply.github.com> Date: Thu, 28 Dec 2023 23:13:50 +0530 Subject: [PATCH 1/2] Update batch.py --- main/plugins/batch.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/main/plugins/batch.py b/main/plugins/batch.py index 2bb76d965..1a80c78ad 100644 --- a/main/plugins/batch.py +++ b/main/plugins/batch.py @@ -66,7 +66,7 @@ async def _batch(event): return conv.cancel() try: value = int(_range.text) - if value > 100: + if value > 1000: await conv.send_message("You can only get upto 100 files in a single batch.") return conv.cancel() except ValueError: @@ -79,18 +79,18 @@ async def _batch(event): async def run_batch(userbot, client, sender, link, _range): for i in range(_range): - timer = 60 + timer = 10 if i < 25: - timer = 5 + timer = 10 if i < 50 and i > 25: timer = 10 if i < 100 and i > 50: - timer = 15 + timer = 10 if not 't.me/c/' in link: if i < 25: - timer = 2 + timer = 10 else: - timer = 3 + timer = 10 try: if not sender in batch: await client.send_message(sender, "Batch completed.") From 5a10ff2c3ca0c18593aa3a4536caefff3b215721 Mon Sep 17 00:00:00 2001 From: Satyamguru <154254086+Satyamguru@users.noreply.github.com> Date: Thu, 11 Jan 2024 01:10:40 +0530 Subject: [PATCH 2/2] Update batch.py --- main/plugins/batch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/plugins/batch.py b/main/plugins/batch.py index 1a80c78ad..5ba5f192b 100644 --- a/main/plugins/batch.py +++ b/main/plugins/batch.py @@ -66,7 +66,7 @@ async def _batch(event): return conv.cancel() try: value = int(_range.text) - if value > 1000: + if value > 2000: await conv.send_message("You can only get upto 100 files in a single batch.") return conv.cancel() except ValueError: