From 38621f8239c2e783b24d5e2d9e76a5f1c2ddfa1d Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Tue, 24 Apr 2018 14:44:50 +0200 Subject: [PATCH] Clean PhotoSize type --- pyrogram/client/types/photo_size.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pyrogram/client/types/photo_size.py b/pyrogram/client/types/photo_size.py index 3c0c993e..0af6b6d0 100644 --- a/pyrogram/client/types/photo_size.py +++ b/pyrogram/client/types/photo_size.py @@ -38,11 +38,14 @@ class PhotoSize(Object): file_size (``int`` ``32-bit``, optional): File size. + date (``int``, optional): + Date the photo was sent in Unix time """ ID = 0xb0700005 - def __init__(self, file_id, width, height, file_size=None): + def __init__(self, file_id, width, height, file_size=None, date=None): self.file_id = file_id # string self.width = width # int self.height = height # int self.file_size = file_size # flags.0?int + self.date = date