From ad929209fc6dbe364c4350fb6486a3868450bcc8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B4=9B=E6=B0=B4=E5=B1=85=E5=AE=A4?= Date: Sun, 11 Sep 2022 15:37:14 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20=E7=BE=A4=E9=AA=8C=E8=AF=81?= =?UTF-8?q?=E6=A8=A1=E5=9D=97=E6=90=9C=E7=B4=A2=E6=B6=88=E6=81=AF=E6=97=B6?= =?UTF-8?q?=E5=BF=BD=E7=95=A5=E5=85=A5=E7=BE=A4=E6=B6=88=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/system/auth.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/system/auth.py b/plugins/system/auth.py index fb16c95b..ab7253ba 100644 --- a/plugins/system/auth.py +++ b/plugins/system/auth.py @@ -318,7 +318,8 @@ class GroupJoiningVerification(Plugin): if self.mtp is not None: from pyrogram.errors import BadRequest as MTPBadRequest, FloodWait as MTPFloodWait try: - messages_list = await self.mtp.get_messages(chat.id, message_ids=[message.id, question_message.id]) + messages_list = await self.mtp.get_messages(chat.id, + message_ids=[message.id + 1, question_message.id]) for find_message in messages_list: if find_message.from_user.id == user.id: await self.mtp.delete_messages(chat_id=chat.id, message_ids=find_message.id)