From 079a56c6507b00a4844d5bedf9aba3a7d39f0801 Mon Sep 17 00:00:00 2001 From: Zaute <77600757+ZauteKm@users.noreply.github.com> Date: Wed, 7 Jul 2021 21:56:10 +0530 Subject: [PATCH] Update channelplay.py --- VCsMusicBot/modules/channelplay.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/VCsMusicBot/modules/channelplay.py b/VCsMusicBot/modules/channelplay.py index 59d588b..039b7e8 100644 --- a/VCsMusicBot/modules/channelplay.py +++ b/VCsMusicBot/modules/channelplay.py @@ -417,8 +417,11 @@ async def play(_, message: Message): user_name = message.from_user.first_name rpk = "[" + user_name + "](tg://user?id=" + str(user_id) + ")" if message.reply_to_message: + if message.reply_to_message.audio: + pass entities = [] - toxt = message.reply_to_message.text or message.reply_to_message.caption + toxt = message.reply_to_message.text \ + or message.reply_to_message.caption if message.reply_to_message.entities: entities = message.reply_to_message.entities + entities elif message.reply_to_message.caption_entities: @@ -453,7 +456,7 @@ async def play(_, message: Message): ) file_name = get_file_name(audio) title = file_name - thumb_name = "https://telegra.ph/file/cf19dda907391656338eb.png" + thumb_name = "https://telegra.ph/file/f6086f8909fbfeb0844f2.png" thumbnail = thumb_name duration = round(audio.duration / 60) views = "Locally added" @@ -598,7 +601,7 @@ async def play(_, message: Message): await message.reply_photo( photo="final.png", reply_markup=keyboard, - caption="▶️ <b>Playing</b> the song requested by {} via Youtube Music 😎 in Linked Channel".format( + caption="▶️ <b>Playing</b> the song requested by {} via YouTube Music in Linked Channel".format( message.from_user.mention() ), )