From b3069348caa88e523e7d22fe185770e769a41a76 Mon Sep 17 00:00:00 2001 From: Jacob Bom Date: Tue, 1 Aug 2017 22:07:12 +0200 Subject: [PATCH] Add rich comparison to CallbackQuery (#764) We currently have no tests for it. Noted for #756 and #757. --- telegram/callbackquery.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/telegram/callbackquery.py b/telegram/callbackquery.py index c5edc632b..947d04503 100644 --- a/telegram/callbackquery.py +++ b/telegram/callbackquery.py @@ -90,6 +90,8 @@ class CallbackQuery(TelegramObject): self.bot = bot + self._id_attrs = ('id',) + @classmethod def de_json(cls, data, bot): if not data: