add delay after each sent post

master
bakatrouble 4 months ago
parent 699defca3d
commit e6302009bb

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

Loading…
Cancel
Save