From 7ff9f28e153969279ea18affc3af1d9664af5129 Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Fri, 9 Mar 2018 14:47:45 +0100 Subject: [PATCH] Add Video type --- pyrogram/client/types/video.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 pyrogram/client/types/video.py diff --git a/pyrogram/client/types/video.py b/pyrogram/client/types/video.py new file mode 100644 index 00000000..37d0a8c8 --- /dev/null +++ b/pyrogram/client/types/video.py @@ -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