Update admins.py
This commit is contained in:
parent
2b5da49dcb
commit
66210a0500
@ -2,7 +2,7 @@
|
||||
|
||||
import cache.admins
|
||||
from typing import List
|
||||
|
||||
import time
|
||||
from pyrogram.types import Chat
|
||||
from cache.admins import get as gett
|
||||
from cache.admins import set
|
||||
@ -14,6 +14,7 @@ async def get_administrators(chat: Chat) -> List[int]:
|
||||
if get:
|
||||
return get
|
||||
else:
|
||||
time.sleep(3) # control Flood wait
|
||||
administrators = await chat.get_members(filter="administrators")
|
||||
to_set = []
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user