Browse Source

bad fix but ok for now

txlyre 1 month ago
parent
commit
c4cae26195
1 changed files with 6 additions and 0 deletions
  1. 6 0
      main.py

+ 6 - 0
main.py

@@ -114,6 +114,12 @@ class PendingUser:
 
         self.message_id = message
 
+        if self.user_id not in pending[self.peer_id]:
+            try:
+                await bot.delete_messages(self.peer_id, self.message_id)
+            except Exception:
+                pass
+
     async def update_captcha(self, only_text=False):
         if not only_text:
             self.captcha = "".join(random.sample(string.ascii_uppercase, 4))