We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 22142e7 commit 9982f3cCopy full SHA for 9982f3c
telegram/message.py
@@ -202,7 +202,7 @@ def de_json(data, bot):
202
data = super(Message, Message).de_json(data, bot)
203
204
data['from_user'] = User.de_json(data.get('from'), bot)
205
- data['date'] = datetime.fromtimestamp(data['date'])
+ data['date'] = Message._fromtimestamp(data['date'])
206
data['chat'] = Chat.de_json(data.get('chat'), bot)
207
data['entities'] = MessageEntity.de_list(data.get('entities'), bot)
208
data['forward_from'] = User.de_json(data.get('forward_from'), bot)
0 commit comments