🩹 优化群验证 mtp 模块

This commit is contained in:
xtaodada 2022-09-11 18:15:46 +08:00
parent 0d4febd7f5
commit 3b8da71f6d
Signed by: xtaodada
GPG Key ID: 4CBB3F4FA8C85659

View File

@ -315,7 +315,7 @@ class GroupJoiningVerification(Plugin):
chat_id=chat.id, user_id=user.id, chat_id=chat.id, user_id=user.id,
job_kwargs={"replace_existing": True, job_kwargs={"replace_existing": True,
"id": f"{chat.id}|{user.id}|auth_clean_question_message"}) "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 from pyrogram.errors import BadRequest as MTPBadRequest, FloodWait as MTPFloodWait
try: try:
messages_list = await self.mtp.get_messages( messages_list = await self.mtp.get_messages(