Answer the question
In order to leave comments, you need to log in
[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;
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question