From 8216201f19ccacfc08998bace78e16eabc77a2e5 Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Fri, 9 Mar 2018 14:44:31 +0100 Subject: [PATCH] Add Voice type --- pyrogram/client/types/voice.py | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 pyrogram/client/types/voice.py diff --git a/pyrogram/client/types/voice.py b/pyrogram/client/types/voice.py new file mode 100644 index 00000000..d21559f0 --- /dev/null +++ b/pyrogram/client/types/voice.py @@ -0,0 +1,10 @@ +class Voice: + def __init__(self, + file_id: str, + duration: int, + mime_type: str = None, + file_size: int = None): + self.file_id = file_id + self.duration = duration + self.mime_type = mime_type + self.file_size = file_size