mirror of
https://github.com/PaiGramTeam/PaiGram.git
synced 2024-11-23 00:01:45 +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,
|
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(
|
||||||
|
Loading…
Reference in New Issue
Block a user