title length

This commit is contained in:
levina 2022-02-15 23:44:03 +07:00 committed by GitHub
parent ee2a8c816b
commit c80dc209e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -117,9 +117,9 @@ async def play(c: Client, m: Message):
try: try:
if replied.audio: if replied.audio:
if replied.audio.title: if replied.audio.title:
songname = replied.audio.title[:70] songname = replied.audio.title[:80]
else: else:
songname = replied.audio.file_name[:70] songname = replied.audio.file_name[:80]
if replied.audio.thumbs: if replied.audio.thumbs:
thumbnail = await c.download_media(replied.audio.thumbs[0].file_id) thumbnail = await c.download_media(replied.audio.thumbs[0].file_id)
duration = convert_seconds(replied.audio.duration) duration = convert_seconds(replied.audio.duration)