mirror of
https://github.com/PaiGramTeam/PaiGram.git
synced 2024-11-16 12:51:35 +00:00
🎨 验证模块在移除用户时延迟3秒
This commit is contained in:
parent
73bcfaa4ce
commit
d9c38f2206
@ -190,6 +190,7 @@ class GroupJoiningVerification:
|
||||
buttons = [[InlineKeyboardButton("驱离", callback_data=f"auth_admin|kick|{user.id}"),
|
||||
InlineKeyboardButton("撤回驱离", callback_data=f"auth_admin|unban|{user.id}")]]
|
||||
await callback_query.answer(text=f"验证失败,请在 {self.time_out} 秒后重试", show_alert=True)
|
||||
await asyncio.sleep(3)
|
||||
await context.bot.ban_chat_member(chat_id=chat.id, user_id=user_id,
|
||||
until_date=int(time.time()) + self.kick_time)
|
||||
text = f"{user.mention_markdown_v2()} 验证失败,已经赶出提瓦特大陆!\n" \
|
||||
|
Loading…
Reference in New Issue
Block a user