add delay after each sent post

This commit is contained in:
bakatrouble 2023-08-13 22:23:10 +03:00
parent 699defca3d
commit e6302009bb

View File

@ -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'])