Update sio_captcha_handler.py

This commit is contained in:
Andrei 2024-12-15 02:09:09 +03:00
parent 08df2b623e
commit 452358261f
1 changed files with 1 additions and 1 deletions

View File

@ -62,7 +62,7 @@ class SIOCaptchaHandler(CaptchaHandler):
# if a local file link is passed # if a local file link is passed
if captcha_file: if captcha_file:
self.captcha_params.create_task_payload.task.update( 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 # if the file is transferred in base64 encoding
elif captcha_base64: elif captcha_base64: