mirror of
https://github.com/PaiGramTeam/PaiGram.git
synced 2024-11-22 15:36:44 +00:00
🩹 优化群验证 mtp 模块
This commit is contained in:
parent
0d4febd7f5
commit
3b8da71f6d
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user