From e6302009bb667e9b373d45fff6d4b2f688a91aea Mon Sep 17 00:00:00 2001 From: bakatrouble Date: Sun, 13 Aug 2023 22:23:10 +0300 Subject: [PATCH] add delay after each sent post --- main.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main.py b/main.py index fdd2fcc..0166cce 100644 --- a/main.py +++ b/main.py @@ -2,6 +2,7 @@ import asyncio import logging import os import random +from asyncio import sleep from io import BytesIO from pathlib import Path from tempfile import TemporaryFile, TemporaryDirectory @@ -122,6 +123,7 @@ async def check_updates(): if already_sent[i]: continue await send_post(posts[i], tag_list) + await sleep(.1) @dp.message_handler(filters.IDFilter(chat_id=user_ids), commands=['add'])