mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-30 02:50:39 +00:00
parent
1856e79a50
commit
eee140f74f
4 changed files with 60 additions and 1 deletions
|
@ -67,7 +67,17 @@ public class ErrorUtils {
|
|||
} else if (result.getProofRequiredFailure() != null) {
|
||||
final var failure = result.getProofRequiredFailure();
|
||||
return String.format(
|
||||
"CAPTCHA proof required for sending to \"%s\", available options \"%s\" with challenge token \"%s\", or wait \"%d\" seconds",
|
||||
"CAPTCHA proof required for sending to \"%s\", available options \"%s\" with challenge token \"%s\", or wait \"%d\" seconds.\n"
|
||||
+ (
|
||||
failure.getOptions().contains(ProofRequiredException.Option.RECAPTCHA)
|
||||
?
|
||||
"To get the captcha token, go to https://signalcaptchas.org/registration/generate.html\n"
|
||||
+ "Check the developer tools (F12) console for a failed redirect to signalcaptcha://\n"
|
||||
+ "Everything after signalcaptcha:// is the captcha token.\n"
|
||||
+ "Use the following command to submit the captcha token:\n"
|
||||
+ "signal-cli submitRateLimitChallenge --challenge CHALLENGE_TOKEN --captcha CAPTCHA_TOKEN"
|
||||
: ""
|
||||
),
|
||||
identifier,
|
||||
failure.getOptions()
|
||||
.stream()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue