title length
This commit is contained in:
parent
ee2a8c816b
commit
c80dc209e7
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user