This commit is contained in:
yasir 2022-12-05 11:57:23 +07:00
parent b7af81e7c3
commit d5dbfde3b8
3 changed files with 4 additions and 3 deletions

View file

@ -60,6 +60,7 @@ async def start_bot():
)
except Exception as e:
LOGGER.error(str(e))
asyncio.create_task(auto_clean())
await idle()

View file

@ -79,7 +79,7 @@ async def active_afk(_, message):
f"**{message.from_user.first_name}** is back online",
disable_web_page_preview=True,
)
await put_cleanmode(message.chat.id, send.message_id)
await put_cleanmode(message.chat.id, send.id)
return
if len(message.command) == 1 and not message.reply_to_message:
details = {
@ -179,7 +179,7 @@ async def active_afk(_, message):
send = await message.reply_text(
f"{message.from_user.mention} [<code>{message.from_user.id}</code>] is now AFK! This message will be deleted in 10s."
)
await put_cleanmode(message.chat.id, send.message_id)
await put_cleanmode(message.chat.id, send.id)
@app.on_message(filters.command("afkdel") & ~filters.private)

View file

@ -228,6 +228,6 @@ async def chat_watcher_func(_, message):
except:
return
try:
await put_cleanmode(message.chat.id, send.message_id)
await put_cleanmode(message.chat.id, send.id)
except:
return