1- from typing import Dict
1+ from typing import Any , Dict
22
33from python3_capsolver .core .enum import CaptchaTypeEnm
44from python3_capsolver .core .serializer import TaskSer
@@ -41,15 +41,15 @@ def __init__(
4141 self ._captcha_handling_instrument = CaptchaInstrument ()
4242 self .sleep_time = sleep_time
4343
44- def captcha_handler (self , task_payload : Dict ) -> Dict [str , str ]:
44+ def captcha_handler (self , task_payload : Dict ) -> Dict [str , Any ]:
4545 """
4646 Synchronous method for captcha solving
4747
4848 Args:
4949 task_payload: Some additional parameters that will be used in creating the task
50- and will be passed to the payload under ``task`` key.
51- Like ``proxyLogin ``, ``proxyPassword`` and etc. - more info in service docs
52-
50+ and will be passed to the payload under ``task`` key.
51+ Like ``websiteURL ``, ``image``, `` proxyPassword``, ``websiteKey`` and etc.
52+ more info in service docs
5353
5454 Returns:
5555 Dict with full server response
@@ -61,14 +61,15 @@ def captcha_handler(self, task_payload: Dict) -> Dict[str, str]:
6161 self ._captcha_handling_instrument = SIOCaptchaInstrument (captcha_params = self )
6262 return self ._captcha_handling_instrument .processing_captcha ()
6363
64- async def aio_captcha_handler (self , task_payload : Dict ) -> Dict [str , str ]:
64+ async def aio_captcha_handler (self , task_payload : Dict ) -> Dict [str , Any ]:
6565 """
6666 Asynchronous method for captcha solving
6767
6868 Args:
6969 task_payload: Some additional parameters that will be used in creating the task
70- and will be passed to the payload under ``task`` key.
71- Like ``proxyLogin``, ``proxyPassword`` and etc. - more info in service docs
70+ and will be passed to the payload under ``task`` key.
71+ Like ``websiteURL``, ``image``, ``proxyPassword``, ``websiteKey`` and etc.
72+ more info in service docs
7273
7374 Returns:
7475 Dict with full server response
0 commit comments