X Tutup
Skip to content

Commit d4f2f2e

Browse files
committed
Getting instead of popping
I really think we should be popping and I'm unable to see why it makes our tests fail, but for now.. rolling back.
1 parent 73d75b9 commit d4f2f2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

telegram/message.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ def de_json(data, bot):
206206

207207
data = super(Message, Message).de_json(data, bot)
208208

209-
data['from_user'] = User.de_json(data.pop('from'), bot)
209+
data['from_user'] = User.de_json(data.get('from'), bot)
210210
data['date'] = Message._fromtimestamp(data['date'])
211211
data['chat'] = Chat.de_json(data.get('chat'), bot)
212212
data['entities'] = MessageEntity.de_list(data.get('entities'), bot)

0 commit comments

Comments
 (0)
X Tutup