This commit is contained in:
levina 2022-02-10 10:24:35 +07:00 committed by GitHub
parent 9c795c68c3
commit bd9dbb4c31
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,5 +1,4 @@
import os import os
from cache.admins import admins from cache.admins import admins
from driver.core import calls, bot from driver.core import calls, bot
from pyrogram import Client, filters from pyrogram import Client, filters
@ -79,7 +78,7 @@ async def skip(c: Client, m: Message):
os.remove(image) os.remove(image)
else: else:
skip = m.text.split(None, 1)[1] skip = m.text.split(None, 1)[1]
track = "🗑 **removed song from queue:**" track = "🗑 removed song from queue:"
if chat_id in QUEUE: if chat_id in QUEUE:
items = [int(x) for x in skip.split(" ") if x.isdigit()] items = [int(x) for x in skip.split(" ") if x.isdigit()]
items.sort(reverse=True) items.sort(reverse=True)