This commit is contained in:
yasir 2022-12-05 11:31:21 +07:00
parent 76e696edda
commit 72d320a2b0
2 changed files with 3 additions and 2 deletions

View file

@ -12,6 +12,7 @@ basicConfig(
MOD_LOAD = []
MOD_NOLOAD = []
HELPABLE = {}
cleanmode = {}
botStartTime = time.time()
# Pyrogram Bot Client

View file

@ -12,7 +12,7 @@ import os
import emoji
from database.users_chats_db import db
from database.afk_db import is_cleanmode_on
from misskaty import app
from misskaty import app, cleanmode
LOGGER = getLogger(__name__)
BANNED = {}
@ -40,7 +40,7 @@ async def auto_clean():
try:
await app.delete_messages(chat_id, x["msg_id"])
except FloodWait as e:
await asyncio.sleep(e.x)
await asyncio.sleep(e.value)
except:
continue
else: