diff --git a/src/python3_anticaptcha/core/sio_captcha_handler.py b/src/python3_anticaptcha/core/sio_captcha_handler.py index 3526972..24388c0 100644 --- a/src/python3_anticaptcha/core/sio_captcha_handler.py +++ b/src/python3_anticaptcha/core/sio_captcha_handler.py @@ -62,7 +62,7 @@ class SIOCaptchaHandler(CaptchaHandler): # if a local file link is passed if captcha_file: self.captcha_params.create_task_payload.task.update( - {"body": base64.b64encode(self._local_file_captcha(captcha_file)).decode("utf-8")} + {"body": base64.b64encode(self._local_file_captcha(captcha_file=captcha_file)).decode("utf-8")} ) # if the file is transferred in base64 encoding elif captcha_base64: