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

Commit

Permalink
Update channelplay.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ZauteKm authored Jul 7, 2021
1 parent 2f91617 commit 079a56c
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions VCsMusicBot/modules/channelplay.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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()
),
)
Expand Down

0 comments on commit 079a56c

Please sign in to comment.