Skip to content

Commit ddfce4b

Browse files
committed
Add file_name, mime_type and date to VideoNote objects
1 parent f35d922 commit ddfce4b

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

compiler/api/source/pyrogram.tl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ pyrogram.audio#b0700006 flags:# file_id:string thumb:flags.0?PhotoSize file_name
1212
pyrogram.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;
1313
pyrogram.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;
1414
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;
15-
pyrogram.videoNote#b0700010 flags:# file_id:string length:int duration:int thumb:flags.0?PhotoSize file_size:flags.1?int = pyrogram.VideoNote;
15+
pyrogram.videoNote#b0700010 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 length:int duration:int = pyrogram.VideoNote;
1616
pyrogram.contact#b0700011 flags:# phone_number:string first_name:string last_name:flags.0?string user_id:flags.1?int = pyrogram.Contact;
1717
pyrogram.location#b0700012 longitude:double latitude:double = pyrogram.Location;
1818
pyrogram.venue#b0700013 flags:# location:Location title:string address:string foursquare_id:flags.0?string = pyrogram.Venue;

pyrogram/client/message_parser.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,10 @@ def parse_message(
366366
length=video_attributes.w,
367367
duration=video_attributes.duration,
368368
thumb=parse_thumb(doc.thumb),
369-
file_size=doc.size
369+
file_size=doc.size,
370+
file_name=file_name,
371+
mime_type=doc.mime_type,
372+
date=doc.date
370373
)
371374
else:
372375
video = pyrogram.Video(

0 commit comments

Comments
 (0)