1
0
mirror of https://github.com/eternnoir/pyTelegramBotAPI.git synced 2023-08-10 21:12:57 +03:00

Added edit_date to Message object

As of Bot API update 2.1, `Message` object now has optional `edit_date` field.
This commit is contained in:
Kondra007 2016-05-22 13:32:53 +03:00
parent 747f14216b
commit 04df139efb

View File

@ -178,6 +178,8 @@ class Message(JsonDeserializable):
opts['forward_date'] = obj['forward_date']
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'])
if 'text' in obj:
opts['text'] = obj['text']
content_type = 'text'
@ -269,6 +271,7 @@ class Message(JsonDeserializable):
self.forward_from = None
self.forward_date = None
self.reply_to_message = None
self.edit_date = None
self.text = None
self.entities = None
self.audio = None