|
@@ -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))
|