mirror of
https://github.com/eternnoir/pyTelegramBotAPI.git
synced 2023-08-10 21:12:57 +03:00
fixed bug
This commit is contained in:
parent
3a4cf47def
commit
c7b360e982
@ -158,10 +158,9 @@ class ChatMemberUpdated(JsonDeserializable):
|
|||||||
"""
|
"""
|
||||||
old: Dict = self.old_chat_member.__dict__
|
old: Dict = self.old_chat_member.__dict__
|
||||||
new: Dict = self.new_chat_member.__dict__
|
new: Dict = self.new_chat_member.__dict__
|
||||||
old.pop('user') # User should always be the same
|
|
||||||
new.pop('user') # No need to include
|
|
||||||
dif = {}
|
dif = {}
|
||||||
for key in new:
|
for key in new:
|
||||||
|
if key == 'user': continue
|
||||||
if new[key] != old[key]:
|
if new[key] != old[key]:
|
||||||
dif[key] = [old[key], new[key]]
|
dif[key] = [old[key], new[key]]
|
||||||
return dif
|
return dif
|
||||||
|
Loading…
Reference in New Issue
Block a user