diff --git a/program/admins.py b/program/admins.py index 2067e48..dc014c6 100644 --- a/program/admins.py +++ b/program/admins.py @@ -1,3 +1,5 @@ +import os + from cache.admins import admins from driver.core import calls, bot from pyrogram import Client, filters @@ -74,9 +76,10 @@ async def skip(c: Client, m: Message): reply_markup=InlineKeyboardMarkup(buttons), caption=f"ā­ **Skipped** to the next track.\n\nšŸ—‚ **Name:** [{op[0]}]({op[1]})\nšŸ’­ **Chat:** `{chat_id}`\nšŸ§ø **Request by:** {requester}", ) + os.remove(image) else: skip = m.text.split(None, 1)[1] - OP = "šŸ—‘ **removed song from queue:**" + track = "šŸ—‘ **removed song from queue:**" if chat_id in QUEUE: items = [int(x) for x in skip.split(" ") if x.isdigit()] items.sort(reverse=True) @@ -84,12 +87,12 @@ async def skip(c: Client, m: Message): if x == 0: pass else: - hm = await skip_item(chat_id, x) - if hm == 0: + data = await skip_item(chat_id, x) + if data == 0: pass else: - OP = OP + "\n" + f"**#{x}** - {hm}" - await m.reply(OP) + track = track + "\n" + f"**#{x}** - {hm}" + await m.reply(track) @Client.on_message(