mirror of
https://github.com/yasirarism/MissKatyPyro.git
synced 2026-01-03 02:54:52 +00:00
Fix
This commit is contained in:
parent
b7af81e7c3
commit
d5dbfde3b8
3 changed files with 4 additions and 3 deletions
|
|
@ -60,6 +60,7 @@ async def start_bot():
|
|||
)
|
||||
except Exception as e:
|
||||
LOGGER.error(str(e))
|
||||
asyncio.create_task(auto_clean())
|
||||
await idle()
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue