mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-29 05:18:10 +00:00
Clean VideoNote type
This commit is contained in:
parent
48284e7629
commit
5f7dd681f4
@ -41,12 +41,36 @@ class VideoNote(Object):
|
|||||||
file_size (``int`` ``32-bit``, optional):
|
file_size (``int`` ``32-bit``, optional):
|
||||||
File size.
|
File size.
|
||||||
|
|
||||||
|
file_name (``str``, optional):
|
||||||
|
Video note file name.
|
||||||
|
|
||||||
|
mime_type (``str``, optional):
|
||||||
|
MIME type of the file as defined by sender.
|
||||||
|
|
||||||
|
file_size (``int`` ``32-bit``, optional):
|
||||||
|
File size.
|
||||||
|
|
||||||
|
date (``int``, optional):
|
||||||
|
Date the video note was sent in Unix time.
|
||||||
"""
|
"""
|
||||||
ID = 0xb0700010
|
ID = 0xb0700010
|
||||||
|
|
||||||
def __init__(self, file_id, length, duration, thumb=None, file_size=None):
|
def __init__(
|
||||||
|
self,
|
||||||
|
file_id: str,
|
||||||
|
length: int,
|
||||||
|
duration: int,
|
||||||
|
thumb=None,
|
||||||
|
file_name: str = None,
|
||||||
|
mime_type: str = None,
|
||||||
|
file_size: int = None,
|
||||||
|
date: int = None
|
||||||
|
):
|
||||||
self.file_id = file_id # string
|
self.file_id = file_id # string
|
||||||
|
self.thumb = thumb # flags.0?PhotoSize
|
||||||
|
self.file_name = file_name # flags.1?string
|
||||||
|
self.mime_type = mime_type # flags.2?string
|
||||||
|
self.file_size = file_size # flags.3?int
|
||||||
|
self.date = date # flags.4?int
|
||||||
self.length = length # int
|
self.length = length # int
|
||||||
self.duration = duration # int
|
self.duration = duration # int
|
||||||
self.thumb = thumb # flags.0?PhotoSize
|
|
||||||
self.file_size = file_size # flags.1?int
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user