Skip to content

Commit 1ca0ba6

Browse files
authored
Merge pull request #3 from dminko/patch-1
add captcha param
2 parents e7edab9 + 1932f89 commit 1ca0ba6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Signal.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ public function __construct(string $binaryPath, string $username, string $format
3434
* Register a phone number with SMS or voice verification. Use the verify command to complete the verification.
3535
* Default verify with SMS
3636
* @param bool $voiceVerification The verification should be done over voice, not SMS.
37+
* @param string $captcha - from https://signalcaptchas.org/registration/generate.html
3738
* @return bool
3839
*/
3940
public function register(bool $voiceVerification = false): bool
@@ -47,6 +48,10 @@ public function register(bool $voiceVerification = false): bool
4748
}
4849

4950

51+
if(!empty($captcha)){
52+
$this->command->addArg('--captcha', $captcha);
53+
}
54+
5055
return $this->command->execute();
5156
}
5257

0 commit comments

Comments
 (0)