feat: captcha solver with proxy

i dont like it
This commit is contained in:
Elysia
2023-06-02 11:09:08 +07:00
parent 2e0889459c
commit 18e7f8171f
5 changed files with 68 additions and 7 deletions

View File

@@ -1033,6 +1033,9 @@ class Client extends BaseClient {
if (options && typeof options.captchaSolver !== 'function') {
throw new TypeError('CLIENT_INVALID_OPTION', 'captchaSolver', 'a function');
}
if (options && typeof options.captchaWithProxy !== 'boolean') {
throw new TypeError('CLIENT_INVALID_OPTION', 'captchaWithProxy', 'a boolean');
}
if (options && typeof options.DMSync !== 'boolean') {
throw new TypeError('CLIENT_INVALID_OPTION', 'DMSync', 'a boolean');
}