diff --git a/telegram/callbackquery.py b/telegram/callbackquery.py index 440ddce8c..97ab956e2 100644 --- a/telegram/callbackquery.py +++ b/telegram/callbackquery.py @@ -43,3 +43,14 @@ class CallbackQuery(TelegramObject): data['message'] = Message.de_json(data.get('message')) return CallbackQuery(**data) + + def to_dict(self): + """ + Returns: + dict: + """ + data = super(CallbackQuery, self).to_dict() + + # Required + data['from'] = data.pop('from_user', None) + return data