fix: change pop to remove

This commit is contained in:
Maxim Slipenko 2024-10-07 12:13:01 +03:00
parent fe9bbebd79
commit f64800949c
No known key found for this signature in database
GPG Key ID: 6DEA9FA7DE98C7D6

View File

@ -100,7 +100,7 @@ async def left_member_handler(event: "ChatMemberUpdated", bot: Bot):
task = verification_tasks.get(key) task = verification_tasks.get(key)
await task.end(success=False) 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): async def verify_timeout(task: BaseTask):