From 472495397179c98946afb972b327d2ada7fbff43 Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Fri, 9 Mar 2018 14:46:25 +0100 Subject: [PATCH] Add VideoNote type --- pyrogram/client/types/video_note.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 pyrogram/client/types/video_note.py diff --git a/pyrogram/client/types/video_note.py b/pyrogram/client/types/video_note.py new file mode 100644 index 00000000..3969c2d9 --- /dev/null +++ b/pyrogram/client/types/video_note.py @@ -0,0 +1,15 @@ +from . import PhotoSize + + +class VideoNote: + def __init__(self, + file_id: str, + length: int, + duration: int, + thumb: PhotoSize = None, + file_size: int = None): + self.file_id = file_id + self.length = length + self.duration = duration + self.thumb = thumb + self.file_size = file_size