Загрузка...

How to insert VK autocaptcha into your script?

Thread in Node.js created by спонс Sep 18, 2023. 119 views

  1. спонс
    спонс Topic starter Sep 18, 2023 спонс 744 Aug 21, 2020
  2. Alisa_kisa
    Alisa_kisa Sep 18, 2023 Милая кошечка-тян 1236 Apr 26, 2022
    JS
    vk.updates.use(async (context, next) => {
    if (context.is('message') && context.isOutbox) {
    return;
    }

    if (context.isCaptcha()) {
    const { key, sid } = context.captcha;
    const captcha_url = 'https://api.vk.com/captcha.php?sid=${sid}'
    const result = await VKCaptchaSolver(captcha_url)

    return context.resetCaptcha({
    key,
    code: result
    });
    }

    return next();
    });
     
Loading...
Top