🐛 修复验证插件验证超时时踢出异常问题

This commit is contained in:
洛水居室 2022-08-31 16:33:01 +08:00
parent 5782035a6f
commit c83770d11f
No known key found for this signature in database
GPG Key ID: C9DE87DA724B88FC

View File

@ -282,9 +282,11 @@ class GroupJoiningVerification:
context.job_queue.run_once(callback=self.clean_message_job, when=self.time_out, data=message.message_id, context.job_queue.run_once(callback=self.clean_message_job, when=self.time_out, data=message.message_id,
name=f"{chat.id}|{user.id}|auth_clean_join_message", name=f"{chat.id}|{user.id}|auth_clean_join_message",
chat_id=chat.id, user_id=user.id, chat_id=chat.id, user_id=user.id,
job_kwargs={"replace_existing": True, "id": f"{chat.id}|{user.id}|auth_kick"}) job_kwargs={"replace_existing": True,
"id": f"{chat.id}|{user.id}|auth_clean_join_message"})
context.job_queue.run_once(callback=self.clean_message_job, when=self.time_out, context.job_queue.run_once(callback=self.clean_message_job, when=self.time_out,
data=question_message.message_id, data=question_message.message_id,
name=f"{chat.id}|{user.id}|auth_clean_question_message", name=f"{chat.id}|{user.id}|auth_clean_question_message",
chat_id=chat.id, user_id=user.id, chat_id=chat.id, user_id=user.id,
job_kwargs={"replace_existing": True, "id": f"{chat.id}|{user.id}|auth_kick"}) job_kwargs={"replace_existing": True,
"id": f"{chat.id}|{user.id}|auth_clean_join_message"})