This commit is contained in:
levina 2022-01-20 21:43:30 +07:00 committed by GitHub
parent a800a33eba
commit 55165f5613
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -45,11 +45,12 @@ async def skip(client, m: Message):
await m.reply("🗑️ **Clearing the Queues**\n\n**• userbot leaving voice chat**") await m.reply("🗑️ **Clearing the Queues**\n\n**• userbot leaving voice chat**")
else: else:
buttons = stream_markup(user_id) buttons = stream_markup(user_id)
requester = f"[{m.from_user.first_name}](tg://user?id={m.from_user.id})"
await m.send_photo( await m.send_photo(
chat_id, chat_id,
photo=f"{IMG_3}", photo=f"{IMG_3}",
reply_markup=InlineKeyboardMarkup(buttons), reply_markup=InlineKeyboardMarkup(buttons),
caption=f"⏭ **Skipped to the next track.**\n\n🏷 **Name:** [{op[0]}]({op[1]})\n💭 **Chat:** `{chat_id}`\n💡 **Status:** `Playing`\n🎧 **Request by:** {m.from_user.mention()}", caption=f"⏭ **Skipped to the next track.**\n\n🗂 **Name:** [{op[0]}]({op[1]})\n💭 **Chat:** `{chat_id}`\n🧸 **Request by:** {requester}",
) )
else: else:
skip = m.text.split(None, 1)[1] skip = m.text.split(None, 1)[1]