From 3b8da71f6d96f4ec65af65f861a2e4953d425554 Mon Sep 17 00:00:00 2001 From: xtaodada Date: Sun, 11 Sep 2022 18:15:46 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=A9=B9=20=E4=BC=98=E5=8C=96=E7=BE=A4?= =?UTF-8?q?=E9=AA=8C=E8=AF=81=20mtp=20=E6=A8=A1=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/system/auth.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/system/auth.py b/plugins/system/auth.py index 280fa459..db6d8a79 100644 --- a/plugins/system/auth.py +++ b/plugins/system/auth.py @@ -315,7 +315,7 @@ class GroupJoiningVerification(Plugin): chat_id=chat.id, user_id=user.id, job_kwargs={"replace_existing": True, "id": f"{chat.id}|{user.id}|auth_clean_question_message"}) - if self.mtp: + if self.mtp and (question_message.id - message.id - 1): from pyrogram.errors import BadRequest as MTPBadRequest, FloodWait as MTPFloodWait try: messages_list = await self.mtp.get_messages(