mirror of
https://github.com/eternnoir/pyTelegramBotAPI.git
synced 2023-08-10 21:12:57 +03:00
Edited edit_date field
It's integer, not `Message`
This commit is contained in:
parent
04df139efb
commit
234dd8cf9f
@ -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'
|
||||
|
Loading…
Reference in New Issue
Block a user