mirror of
https://github.com/eternnoir/pyTelegramBotAPI.git
synced 2023-08-10 21:12:57 +03:00
Deleted last unnecessaty json.dumps
This commit is contained in:
parent
2f8d1ad4ed
commit
be155afcd8
@ -108,7 +108,7 @@ class Message(JsonDeserializable):
|
|||||||
def de_json(cls, json_string):
|
def de_json(cls, json_string):
|
||||||
obj = cls.check_json(json_string)
|
obj = cls.check_json(json_string)
|
||||||
message_id = obj['message_id']
|
message_id = obj['message_id']
|
||||||
from_user = User.de_json(json.dumps(obj['from']))
|
from_user = User.de_json(obj['from'])
|
||||||
chat = Message.parse_chat(obj['chat'])
|
chat = Message.parse_chat(obj['chat'])
|
||||||
date = obj['date']
|
date = obj['date']
|
||||||
content_type = None
|
content_type = None
|
||||||
|
Loading…
Reference in New Issue
Block a user