Skip to content
This repository was archived by the owner on Jul 30, 2021. It is now read-only.

Commit 079a56c

Browse files
authored
Update channelplay.py
1 parent 2f91617 commit 079a56c

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

VCsMusicBot/modules/channelplay.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -417,8 +417,11 @@ async def play(_, message: Message):
417417
user_name = message.from_user.first_name
418418
rpk = "[" + user_name + "](tg://user?id=" + str(user_id) + ")"
419419
if message.reply_to_message:
420+
if message.reply_to_message.audio:
421+
pass
420422
entities = []
421-
toxt = message.reply_to_message.text or message.reply_to_message.caption
423+
toxt = message.reply_to_message.text \
424+
or message.reply_to_message.caption
422425
if message.reply_to_message.entities:
423426
entities = message.reply_to_message.entities + entities
424427
elif message.reply_to_message.caption_entities:
@@ -453,7 +456,7 @@ async def play(_, message: Message):
453456
)
454457
file_name = get_file_name(audio)
455458
title = file_name
456-
thumb_name = "https://telegra.ph/file/cf19dda907391656338eb.png"
459+
thumb_name = "https://telegra.ph/file/f6086f8909fbfeb0844f2.png"
457460
thumbnail = thumb_name
458461
duration = round(audio.duration / 60)
459462
views = "Locally added"
@@ -598,7 +601,7 @@ async def play(_, message: Message):
598601
await message.reply_photo(
599602
photo="final.png",
600603
reply_markup=keyboard,
601-
caption="▶️ <b>Playing</b> the song requested by {} via Youtube Music 😎 in Linked Channel".format(
604+
caption="▶️ <b>Playing</b> the song requested by {} via YouTube Music in Linked Channel".format(
602605
message.from_user.mention()
603606
),
604607
)

0 commit comments

Comments
 (0)