Update turnstile.py

This commit is contained in:
Andrei 2022-12-14 00:56:36 +03:00
parent 0aee516400
commit 2518d6d2af
1 changed files with 19 additions and 0 deletions

View File

@ -103,3 +103,22 @@ class Turnstile(BaseTurnstile):
self.task_params.update({**additional_params})
return self._processing_captcha()
async def aio_captcha_handler(self, **additional_params) -> dict:
"""
Asynchronous method for captcha solving
Args:
additional_params: Some additional parameters that will be used in creating the task
and will be passed to the payload under ``task`` key.
Like ``proxyLogin``, ``proxyPassword`` and etc. - more info in service docs
Returns:
Full service response
Notes:
Check class docstirng for more info
"""
self.task_params.update({**additional_params})
return await self._aio_processing_captcha()