X Tutup
Skip to content

Commit 720c4d2

Browse files
committed
1 parent 3be8b9e commit 720c4d2

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

telegram/inlinekeyboardbutton.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ def __init__(self,
5656

5757
@staticmethod
5858
def de_json(data):
59+
data = super(InlineKeyboardButton, InlineKeyboardButton).de_json(data)
60+
5961
if not data:
6062
return None
6163

telegram/inlinequery.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ def de_json(data):
6262
Returns:
6363
telegram.InlineQuery:
6464
"""
65+
data = super(InlineQuery, InlineQuery).de_json(data)
66+
6567
if not data:
6668
return None
6769

tests/test_inlinequery.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def test_inlinequery_to_dict(self):
7070
inlinequery = telegram.InlineQuery.de_json(self.json_dict).to_dict()
7171

7272
self.assertTrue(self.is_dict(inlinequery))
73-
# self.assertDictEqual(inlinequery, self.json_dict)
73+
self.assertDictEqual(inlinequery, self.json_dict)
7474

7575

7676
if __name__ == '__main__':

0 commit comments

Comments
 (0)
X Tutup