mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-29 13:27:47 +00:00
Add Video type
This commit is contained in:
parent
140f324cd0
commit
7ff9f28e15
19
pyrogram/client/types/video.py
Normal file
19
pyrogram/client/types/video.py
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
from . import PhotoSize
|
||||||
|
|
||||||
|
|
||||||
|
class Video:
|
||||||
|
def __init__(self,
|
||||||
|
file_id: str,
|
||||||
|
width: int,
|
||||||
|
height: int,
|
||||||
|
duration: int,
|
||||||
|
thumb: PhotoSize = None,
|
||||||
|
mime_type: str = None,
|
||||||
|
file_size: int = None):
|
||||||
|
self.file_id = file_id
|
||||||
|
self.width = width
|
||||||
|
self.height = height
|
||||||
|
self.duration = duration
|
||||||
|
self.thumb = thumb
|
||||||
|
self.mime_type = mime_type
|
||||||
|
self.file_size = file_size
|
Loading…
x
Reference in New Issue
Block a user