This commit is contained in:
levina 2022-02-20 20:52:47 +07:00 committed by GitHub
parent 1481a8e630
commit b028754cf8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -14,6 +14,7 @@ from driver.decorators import check_blacklist
from driver.queues import QUEUE, get_queue from driver.queues import QUEUE, get_queue
from driver.filters import command, other_filters from driver.filters import command, other_filters
keyboard = InlineKeyboardMarkup( keyboard = InlineKeyboardMarkup(
[[InlineKeyboardButton("🗑 Close", callback_data="set_close")]] [[InlineKeyboardButton("🗑 Close", callback_data="set_close")]]
) )
@ -28,11 +29,11 @@ async def playlist(client, m: Message):
if len(chat_queue) == 1: if len(chat_queue) == 1:
await m.reply( await m.reply(
f"💡 **Currently Streaming**`:`\n\n" f"💡 **Currently Streaming**`:`\n\n"
f"*️⃣ [{chat_queue[0][0]}]({chat_queue[0][2]}) | `{chat_queue[0][3]}`", f" [{chat_queue[0][0]}]({chat_queue[0][2]}) | `{chat_queue[0][3]}`",
reply_markup=keyboard, disable_web_page_preview=True) reply_markup=keyboard, disable_web_page_preview=True)
else: else:
QUE = f"💡 **Currently Streaming**`:`\n\n" \ QUE = f"💡 **Currently Streaming**`:`\n\n" \
f"*️⃣ [{chat_queue[0][0]}]({chat_queue[0][2]}) | `{chat_queue[0][3]}` \n\n" \ f" [{chat_queue[0][0]}]({chat_queue[0][2]}) | `{chat_queue[0][3]}` \n\n" \
f"**📖 Queue song list**`:`\n" f"**📖 Queue song list**`:`\n"
l = len(chat_queue) l = len(chat_queue)
for x in range(1, l): for x in range(1, l):