feat: new captcha solver service

This commit is contained in:
March 7th
2022-12-04 16:38:15 +07:00
parent 63cd0b3ca8
commit 7a308f0383
4 changed files with 40 additions and 4 deletions

6
typings/index.d.ts vendored
View File

@@ -3528,7 +3528,7 @@ export const Constants: {
SweeperKeys: SweeperKey[];
// Add
randomUA: () => string;
captchaServices: string[];
captchaServices: captchaServices[];
DMScanLevel: EnumHolder<typeof DMScanLevel>;
stickerAnimationMode: EnumHolder<typeof stickerAnimationMode>;
NitroType: EnumHolder<typeof NitroTypes>;
@@ -4734,12 +4734,14 @@ export interface ClientOptions {
password?: string;
DMSync?: boolean;
proxy?: string;
captchaService?: string;
captchaService?: captchaServices;
captchaKey?: string;
interactionTimeout?: number;
usingNewAttachmentAPI?: boolean;
}
export type captchaServices = '2captcha' | 'nopecha';
// end copy
export interface BaseApplicationCommandData {