From 2a133c87da263fdaafb54033de8b2c21544237e1 Mon Sep 17 00:00:00 2001 From: levina <82658782+levina-lab@users.noreply.github.com> Date: Mon, 1 Nov 2021 10:21:16 +0700 Subject: [PATCH] fixes --- program/music.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/program/music.py b/program/music.py index 767719a..0ea7bf3 100644 --- a/program/music.py +++ b/program/music.py @@ -76,7 +76,10 @@ async def play(_, m: Message): if replied.audio.title: songname = replied.audio.title[:70] else: - songname = replied.audio.file_name[:70] + if replied.audio.file_name: + songname = replied.audio.file_name[:70] + else: + songname = "Audio" elif replied.voice: songname = "Voice Note" if chat_id in QUEUE: