2
0
mirror of https://github.com/pyrogram/pyrogram synced 2025-09-01 06:45:39 +00:00

Add thumb, file_name and date to Voice type

This commit is contained in:
Dan
2018-04-16 00:24:43 +02:00
parent 7184710948
commit f35d922c97
2 changed files with 5 additions and 2 deletions

View File

@@ -307,7 +307,10 @@ def parse_message(
),
duration=audio_attributes.duration,
mime_type=doc.mime_type,
file_size=doc.size
file_size=doc.size,
thumb=parse_thumb(doc.thumb),
file_name=file_name,
date=doc.date
)
else:
audio = pyrogram.Audio(