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