Explorar o código

Fix: chat_id not defined in purge

TheHamkerCat %!s(int64=5) %!d(string=hai) anos
pai
achega
954b36e2ee
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      wbb/modules/admin.py

+ 1 - 0
wbb/modules/admin.py

@@ -152,6 +152,7 @@ async def purgeFunc(client, message: Message):
             "Reply to a message to purge from."
         )
 
+    chat_id = message.chat.id
     message_ids = []
 
     for message_id in range(