Skip to content

Commit

Permalink
add performer for audio
Browse files Browse the repository at this point in the history
  • Loading branch information
anon97945 authored Oct 14, 2021
1 parent ddd86d1 commit 7688e7c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion utils/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1241,7 +1241,10 @@ async def c_play(channel):
now = datetime.now()
nyav = now.strftime("%d-%m-%Y-%H:%M:%S")
if filter == "audio":
title=you.audio.title
if you.audio.performer is not None:
title = f"{you.audio.performer} - {you.audio.title}"
else:
title = you.audio.title
file_id = you.audio.file_id
unique = f"{nyav}_{m.message_id}_audio"
elif filter == "video":
Expand Down

0 comments on commit 7688e7c

Please sign in to comment.