N
N
noytmant2020-02-23 17:21:33
C++ / C#
noytmant, 2020-02-23 17:21:33

[VkNet] Captcha processing?

In general, I sent a message, but when it comes to captcha, the fun begins. It seems like he did everything right:

try
            {
                vk_api.Messages.Send(new MessagesSendParams()
                {
                    RandomId = randomId,
                    UserId = usrid,
                    Message = msg

                });
           }));
            }
            catch (CaptchaNeededException ofda)
            {
                string ggqw = "";
                string url = ofda.Img.AbsoluteUri;
                var captsid= ofda.Sid;
                if (enabled)
                {
                    Debug.Add("Обработка капчи");
                    try
                    {
                        ggqw = VkCaptchaWorks.Solve(url, captsid.ToString());
                        }
                    catch (RuCaptchaException ex)
                    {
                        Debug.Add("Ошибка обработки" + ex.Message);
                    }
                    messha.CaptchaKey = ggqw ;
                    messha.CaptchaSid = captsid;
                }
                else
                {
                    Debug.Add("Ввод капчи из изображения");
                    string ggqw2 = VkCaptchaWorks.SolveManual(url, captsid.ToString());
                    messha.CaptchaKey = ggqw2 ;
                    messha.CaptchaSid = captsid;
                }
            }

I enter the code from the picture or use RuCaptcha, there is no difference, when entering it manually from the picture, the captcha seems to be solved, but another captcha follows, and so on endlessly. It's the same with RuCaptcha, it processes it (EVEN THE BALANCE FROM THE SITE GOES TO BE CLOSED), and so on ad infinitum, until VK itself allows you to write. What could be wrong?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question