File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -295,7 +295,10 @@ def leave_chat(self, chat_id):
295295
296296 def get_chat_administrators (self , chat_id ):
297297 result = apihelper .get_chat_administrators (self .token , chat_id )
298- return [[types .ChatMember .de_json (y ) for y in x ] for x in result ]
298+ ret = []
299+ for r in result :
300+ ret .append (types .ChatMember .de_json (r ))
301+ return ret
299302
300303 def get_chat_members_count (self , chat_id ):
301304 result = apihelper .get_chat_members_count (self .token , chat_id )
Original file line number Diff line number Diff line change @@ -727,7 +727,7 @@ def de_json(cls, json_type):
727727 obj = cls .check_json (json_type )
728728 user = User .de_json (obj ['user' ])
729729 status = obj ['status' ]
730- return cls (id , user , status )
730+ return cls (user , status )
731731
732732 def __init__ (self , user , status ):
733733 self .user = user
You can’t perform that action at this time.
0 commit comments