mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-29 13:27:47 +00:00
PhotoSize won't store date info anymore
This commit is contained in:
parent
5f87bbc962
commit
971299f592
@ -32,18 +32,14 @@ class PhotoSize(Object):
|
|||||||
height (``int``):
|
height (``int``):
|
||||||
Photo height.
|
Photo height.
|
||||||
|
|
||||||
file_size (``int``, *optional*):
|
file_size (``int``):
|
||||||
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, date=None):
|
def __init__(self, file_id: str, width: int, height: int, file_size: int):
|
||||||
self.file_id = file_id # string
|
self.file_id = file_id
|
||||||
self.width = width # int
|
self.width = width
|
||||||
self.height = height # int
|
self.height = height
|
||||||
self.file_size = file_size # flags.0?int
|
self.file_size = file_size
|
||||||
self.date = date
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user