File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -949,6 +949,15 @@ def get_all_users(self) -> List[Dict[str, Any]]:
949
949
"user_id" : user ["user_id" ],
950
950
"status" : status ,
951
951
}
952
+
953
+ if user ["is_bot" ]:
954
+ self .user_dict [user ["email" ]] = {
955
+ "full_name" : user ["full_name" ],
956
+ "email" : email ,
957
+ "user_id" : user ["user_id" ],
958
+ "status" : "bot" ,
959
+ }
960
+
952
961
self ._all_users_by_id [user ["user_id" ]] = user
953
962
self .user_id_email_dict [user ["user_id" ]] = email
954
963
@@ -984,7 +993,7 @@ def get_all_users(self) -> List[Dict[str, Any]]:
984
993
inactive = [
985
994
properties
986
995
for properties in self .user_dict .values ()
987
- if properties ["status" ] == "inactive"
996
+ if properties ["status" ] == "inactive" or properties [ "status" ] == "bot"
988
997
]
989
998
990
999
# Construct user_list from sorted components of each list
You can’t perform that action at this time.
0 commit comments