瀏覽代碼

smol phixxxx

TheHamkerCat 5 年之前
父節點
當前提交
8f80ec9634
共有 1 個文件被更改,包括 1 次插入 和 1 次删除
  1. 1 1
      wbb/modules/sudoers.py

+ 1 - 1
wbb/modules/sudoers.py

@@ -151,7 +151,7 @@ async def ban_globally(_, message):
         else:
             served_chats = await get_served_chats()
             for served_chat in served_chats:
-                try: await app.kick_chat_member(served_chat, user_id)
+                try: await app.kick_chat_member(served_chat['chat_id'], user_id)
                 except Exception: pass
             await add_gban_user(user_id)
             try: await app.send_message(