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

Update types.py

Fix
This commit is contained in:
sviat9440 2018-03-21 10:44:37 +03:00 committed by GitHub
parent c11a9f810c
commit 82e252ec46
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -392,7 +392,7 @@ class Message(JsonDeserializable):
ret.append(MessageEntity.de_json(me))
return ret
def __init__(self, message_id, from_user, date, chat, content_type, options):
def __init__(self, message_id, from_user, date, chat, content_type, options, json_string):
self.content_type = content_type
self.message_id = message_id
self.from_user = from_user
@ -436,7 +436,7 @@ class Message(JsonDeserializable):
self.connected_website = None
for key in options:
setattr(self, key, options[key])
self.json = json
self.json = json_string
class MessageEntity(JsonDeserializable):