瀏覽代碼

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

Juan Simon .D 3 年之前
父節點
當前提交
23ae746498
共有 1 個文件被更改,包括 1 次插入 和 1 次删除
  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 ???