mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-04 22:34:52 +00:00
Add Video type
This commit is contained in:
parent
140f324cd0
commit
7ff9f28e15
1 changed files with 19 additions and 0 deletions
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…
Reference in a new issue