Выпуск WDTT Plus v18

This commit is contained in:
Ivan4537 committed 2026-09-11 15:45:55 +03:00
1 parent abf0a0f130
commit b3935b947a
101 files changed
+16512 -1477

No files matched your search

+12 -1
View File
@@ -144,6 +144,14 @@ func shouldRetryVKCallsPreflight(err error) bool {
if err == nil || isVKCallsFloodError(err) {
return false
}
var captchaErr *VkCaptchaError
if errors.As(err, &captchaErr) {
// A CAPTCHA response is the provider's completed verdict for this path,
// not a transport failure. Repeating the same method with another
// anonymous identity only delays the working legacy/WebView fallback and
// doubles VK requests when the gate is enabled for the current network.
return false
}
message := strings.ToUpper(err.Error())
return !strings.Contains(message, "INVALID_JOIN_LINK") &&
!strings.Contains(message, "ANON_BLOCKED") &&
@@ -163,7 +171,10 @@ func getVKCredsViaVKCalls(ctx context.Context, link string, streamID int) (strin
client, err := tlsclient.NewHttpClient(
tlsclient.NewNoopLogger(),
tlsclient.WithTimeoutSeconds(20),
// VKCalls normally answers in well under a second. A shorter bounded
// timeout prevents one degraded API path from blocking an entire group
// of nine channels for minutes before the compatible provider is tried.
tlsclient.WithTimeoutSeconds(8),
tlsclient.WithClientProfile(profiles.Chrome_146),
tlsclient.WithCookieJar(tlsclient.NewCookieJar()),
)