Spaces:
Running
Running
Captain Ezio
commited on
Commit
·
a4557be
1
Parent(s):
c5d1c30
Update caching.py
Browse files- Powers/utils/caching.py +2 -1
Powers/utils/caching.py
CHANGED
@@ -41,7 +41,8 @@ async def admin_cache_reload(m: Message or CallbackQuery, status=None) -> List[i
|
|
41 |
(("@" + z.user.username) if z.user.username else z.user.first_name),
|
42 |
z.is_anonymous,
|
43 |
)
|
44 |
-
|
|
|
45 |
if not z.user.is_deleted
|
46 |
]
|
47 |
ADMIN_CACHE[m.chat.id] = admin_list
|
|
|
41 |
(("@" + z.user.username) if z.user.username else z.user.first_name),
|
42 |
z.is_anonymous,
|
43 |
)
|
44 |
+
chat = m.chat.id
|
45 |
+
async for z in chat.get_chat_members(filter=enums.ChatMembersFilter.ADMINISTRATORS)
|
46 |
if not z.user.is_deleted
|
47 |
]
|
48 |
ADMIN_CACHE[m.chat.id] = admin_list
|