fix: change pop to remove

This commit is contained in:
2024-10-07 12:13:01 +03:00
parent fe9bbebd79
commit f64800949c

View File

@@ -100,7 +100,7 @@ async def left_member_handler(event: "ChatMemberUpdated", bot: Bot):
task = verification_tasks.get(key)
await task.end(success=False)
verification_tasks.pop((user_id, chat_id), None)
verification_tasks.remove(key_from_user_chat(user_id, chat_id))
async def verify_timeout(task: BaseTask):