This commit is contained in:
levina 2022-02-20 18:16:46 +07:00 committed by GitHub
parent 871b3bb22d
commit 9154d7d97f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -113,6 +113,7 @@ async def play_tg_file(c: Client, m: Message, replied: Message = None, link: str
duration = convert_seconds(replied.video.duration)
elif replied.document:
songname = replied.document.file_name[:80]
duration = convert_seconds(replied.document.duration)
except BaseException:
songname = "Video"