mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-29 13:27:47 +00:00
Video notes don't have a file_name
This commit is contained in:
parent
9214416f7c
commit
00e170feea
@ -35,9 +35,6 @@ class VideoNote(Object):
|
|||||||
thumb (:obj:`PhotoSize <pyrogram.PhotoSize>`, *optional*):
|
thumb (:obj:`PhotoSize <pyrogram.PhotoSize>`, *optional*):
|
||||||
Video thumbnail.
|
Video thumbnail.
|
||||||
|
|
||||||
file_name (``str``, *optional*):
|
|
||||||
Video note file name.
|
|
||||||
|
|
||||||
mime_type (``str``, *optional*):
|
mime_type (``str``, *optional*):
|
||||||
MIME type of the file as defined by sender.
|
MIME type of the file as defined by sender.
|
||||||
|
|
||||||
@ -56,16 +53,14 @@ class VideoNote(Object):
|
|||||||
length: int,
|
length: int,
|
||||||
duration: int,
|
duration: int,
|
||||||
thumb=None,
|
thumb=None,
|
||||||
file_name: str = None,
|
|
||||||
mime_type: str = None,
|
mime_type: str = None,
|
||||||
file_size: int = None,
|
file_size: int = None,
|
||||||
date: int = None
|
date: int = None
|
||||||
):
|
):
|
||||||
self.file_id = file_id # string
|
self.file_id = file_id
|
||||||
self.thumb = thumb # flags.0?PhotoSize
|
self.thumb = thumb
|
||||||
self.file_name = file_name # flags.1?string
|
self.mime_type = mime_type
|
||||||
self.mime_type = mime_type # flags.2?string
|
self.file_size = file_size
|
||||||
self.file_size = file_size # flags.3?int
|
self.date = date
|
||||||
self.date = date # flags.4?int
|
self.length = length
|
||||||
self.length = length # int
|
self.duration = duration
|
||||||
self.duration = duration # int
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user