2
0
mirror of https://github.com/pyrogram/pyrogram synced 2025-08-28 21:07:59 +00:00

Add Document type

This commit is contained in:
Dan 2018-03-09 14:46:08 +01:00
parent 35fcfe8266
commit 281323288e

View File

@ -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