This commit is contained in:
levina 2021-11-01 10:21:16 +07:00 committed by GitHub
parent 606c78731b
commit 2a133c87da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -76,7 +76,10 @@ async def play(_, m: Message):
if replied.audio.title: if replied.audio.title:
songname = replied.audio.title[:70] songname = replied.audio.title[:70]
else: else:
songname = replied.audio.file_name[:70] if replied.audio.file_name:
songname = replied.audio.file_name[:70]
else:
songname = "Audio"
elif replied.voice: elif replied.voice:
songname = "Voice Note" songname = "Voice Note"
if chat_id in QUEUE: if chat_id in QUEUE: