some fixes
This commit is contained in:
parent
6e8114ca78
commit
b656910a10
@ -6,7 +6,7 @@ from driver.queues import (
|
|||||||
clear_queue,
|
clear_queue,
|
||||||
get_queue,
|
get_queue,
|
||||||
pop_an_item,
|
pop_an_item,
|
||||||
clear_trash,
|
clean_trash,
|
||||||
)
|
)
|
||||||
|
|
||||||
from pyrogram.types import InlineKeyboardButton, InlineKeyboardMarkup
|
from pyrogram.types import InlineKeyboardButton, InlineKeyboardMarkup
|
||||||
@ -36,7 +36,6 @@ async def skip_current_song(chat_id):
|
|||||||
chat_queue = get_queue(chat_id)
|
chat_queue = get_queue(chat_id)
|
||||||
if "t.me" in chat_queue[0][2]:
|
if "t.me" in chat_queue[0][2]:
|
||||||
clean_trash(chat_queue[0][1], chat_id)
|
clean_trash(chat_queue[0][1], chat_id)
|
||||||
return
|
|
||||||
if len(chat_queue) == 1:
|
if len(chat_queue) == 1:
|
||||||
await calls.leave_group_call(chat_id)
|
await calls.leave_group_call(chat_id)
|
||||||
await remove_active_chat(chat_id)
|
await remove_active_chat(chat_id)
|
||||||
|
Loading…
Reference in New Issue
Block a user