Skip to content

Commit da01601

Browse files
jsmnbomtsnoam
authored andcommittedMay 14, 2017
Add equality rich comparision operators to telegram objects (python-telegram-bot#604)
fixes python-telegram-bot#587
1 parent 752b647 commit da01601

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+913
-45
lines changed
 

‎telegram/animation.py

+2
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ def __init__(self,
4848
self.mime_type = mime_type
4949
self.file_size = file_size
5050

51+
self._id_attrs = (self.file_id,)
52+
5153
@staticmethod
5254
def de_json(data, bot):
5355
"""

‎telegram/audio.py

+2
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ def __init__(self,
6060
self.mime_type = mime_type
6161
self.file_size = file_size
6262

63+
self._id_attrs = (self.file_id,)
64+
6365
@staticmethod
6466
def de_json(data, bot):
6567
"""

0 commit comments

Comments
 (0)