From 66210a0500107a86f45d6667d6ded15054e63822 Mon Sep 17 00:00:00 2001 From: lokaman chendekar <82169706+lntechnical2@users.noreply.github.com> Date: Wed, 15 Sep 2021 18:41:43 +0530 Subject: [PATCH] Update admins.py --- helpers/admins.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/helpers/admins.py b/helpers/admins.py index 6887c0a..d6e1794 100644 --- a/helpers/admins.py +++ b/helpers/admins.py @@ -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 = []