mirror of
https://github.com/TeamPGM/pyrogram.git
synced 2024-11-16 12:51:18 +00:00
Clean PhotoSize type
This commit is contained in:
parent
fe0f30b2f9
commit
38621f8239
@ -38,11 +38,14 @@ class PhotoSize(Object):
|
|||||||
file_size (``int`` ``32-bit``, optional):
|
file_size (``int`` ``32-bit``, optional):
|
||||||
File size.
|
File size.
|
||||||
|
|
||||||
|
date (``int``, optional):
|
||||||
|
Date the photo was sent in Unix time
|
||||||
"""
|
"""
|
||||||
ID = 0xb0700005
|
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.file_id = file_id # string
|
||||||
self.width = width # int
|
self.width = width # int
|
||||||
self.height = height # int
|
self.height = height # int
|
||||||
self.file_size = file_size # flags.0?int
|
self.file_size = file_size # flags.0?int
|
||||||
|
self.date = date
|
||||||
|
Loading…
Reference in New Issue
Block a user