File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ pyrogram.photoSize#b0700005 flags:# file_id:string width:int height:int file_siz
1111pyrogram.audio#b0700006 flags:# file_id:string thumb:flags.0? PhotoSize file_name:flags.1? string mime_type:flags.2? string file_size:flags.3? int date:flags.4? int duration:int performer:flags.5? string title:flags.6? string = pyrogram .Audio ;
1212pyrogram.document#b0700007 flags:# file_id:string thumb:flags.0? PhotoSize file_name:flags.1? string mime_type:flags.2? string file_size:flags.3? int date:flags.4? int = pyrogram .Document ;
1313pyrogram.video#b0700008 flags:# file_id:string thumb:flags.0? PhotoSize file_name:flags.1? string mime_type:flags.2? string file_size:flags.3? int date:flags.4? int width:int height:int duration:int = pyrogram .Video ;
14- pyrogram.voice#b0700009 flags:# file_id:string duration:int mime_type:flags.0 ? string file_size:flags.1 ? int = pyrogram .Voice ;
14+ pyrogram.voice#b0700009 flags:# file_id:string thumb:flags.0 ? PhotoSize file_name:flags.1 ? string mime_type:flags.2 ? string file_size:flags.3 ? int date:flags.4 ? int duration: int = pyrogram .Voice ;
1515pyrogram.videoNote#b0700010 flags:# file_id:string length:int duration:int thumb:flags.0? PhotoSize file_size:flags.1? int = pyrogram .VideoNote ;
1616pyrogram.contact#b0700011 flags:# phone_number:string first_name:string last_name:flags.0? string user_id:flags.1? int = pyrogram .Contact ;
1717pyrogram.location#b0700012 longitude:double latitude:double = pyrogram .Location ;
Original file line number Diff line number Diff line change @@ -307,7 +307,10 @@ def parse_message(
307307 ),
308308 duration = audio_attributes .duration ,
309309 mime_type = doc .mime_type ,
310- file_size = doc .size
310+ file_size = doc .size ,
311+ thumb = parse_thumb (doc .thumb ),
312+ file_name = file_name ,
313+ date = doc .date
311314 )
312315 else :
313316 audio = pyrogram .Audio (
You can’t perform that action at this time.
0 commit comments