We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6883c89 commit 68e0305Copy full SHA for 68e0305
pyrogram/types/object.py
@@ -106,7 +106,7 @@ def __setstate__(self, state):
106
107
# Maybe a better alternative would be https://docs.python.org/3/library/inspect.html#inspect.signature
108
if isinstance(obj, tuple) and len(obj) == 2 and obj[0] == "dt":
109
- state[attr] = datetime.fromtimestamp(obj[1])
+ state[attr] = pyrogram.utils.timestamp_to_datetime(obj[1])
110
111
self.__dict__ = state
112
0 commit comments