mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-02 05:24:51 +00:00
Fix PhotoSize not having date anymore
This commit is contained in:
parent
6943e16636
commit
c660d3a7d0
1 changed files with 3 additions and 1 deletions
|
|
@ -711,7 +711,9 @@ class Client(Methods, BaseClient):
|
|||
|
||||
file_name = "{}_{}_{}{}".format(
|
||||
media_type_str,
|
||||
datetime.fromtimestamp(media.date or time.time()).strftime("%Y-%m-%d_%H-%M-%S"),
|
||||
datetime.fromtimestamp(
|
||||
getattr(media, "date", None) or time.time()
|
||||
).strftime("%Y-%m-%d_%H-%M-%S"),
|
||||
self.rnd_id(),
|
||||
extension
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue