From 234dd8cf9f6fd5ceacee8b8b6fbad2f3507abf27 Mon Sep 17 00:00:00 2001 From: Kondra007 Date: Sun, 22 May 2016 13:55:54 +0300 Subject: [PATCH] Edited edit_date field It's integer, not `Message` --- telebot/types.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/telebot/types.py b/telebot/types.py index 82680b5..db409b1 100644 --- a/telebot/types.py +++ b/telebot/types.py @@ -179,7 +179,7 @@ class Message(JsonDeserializable): if 'reply_to_message' in obj: opts['reply_to_message'] = Message.de_json(obj['reply_to_message']) if 'edit_date' in obj: - opts['edit_date'] = Message.de_json(obj['edit_date']) + opts['edit_date'] = obj.get('edit_date') if 'text' in obj: opts['text'] = obj['text'] content_type = 'text'