Explorar o código

fix: use of await in async generator (#210)

Juan Simon .D %!s(int64=3) %!d(string=hai) anos
pai
achega
23ae746498
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      wbb/modules/admin.py

+ 1 - 1
wbb/modules/admin.py

@@ -802,7 +802,7 @@ async def report_user(_, message):
     text = f"Reported {user_mention} to admins!"
     admin_data = [
         i
-        async for i in await app.get_chat_members(
+        async for i in app.get_chat_members(
             chat_id=message.chat.id, filter=ChatMembersFilter.ADMINISTRATORS
         )
     ]  # will it give floods ???