Skip to content

Commit

Permalink
chore: update hcaptcha solution object
Browse files Browse the repository at this point in the history
  • Loading branch information
hhendrikk committed Oct 2, 2023
1 parent 6d163a9 commit 4efab59
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Golang library to usage anti-captcha.com.
## Installation

```bash
go get -u github.com/hhendrikk/[email protected].4
go get -u github.com/hhendrikk/[email protected].5
```

## Get balance
Expand Down
2 changes: 1 addition & 1 deletion anticaptcha/task/hcaptcha-proxyless.task.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ type HCaptchaProxylessTask struct {

// hCaptcha devs call their captcha "a drop-in replacement for Recaptcha".
// We tried to create the same thing in our API, so task properties are absolutely the same as in RecaptchaV2TaskProxyless except for the "type" property.
func NewHCaptchaProxylessTask(websiteURL string, websiteKey string, userAgent string) *HCaptchaProxylessTask {
func NewHCaptchaProxylessTask(websiteURL string, websiteKey string) *HCaptchaProxylessTask {
return &HCaptchaProxylessTask{
Type: "HCaptchaTaskProxyless",
WebsiteURL: websiteURL,
Expand Down
2 changes: 1 addition & 1 deletion anticaptcha/task/hcaptcha.task.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ type HCaptchaTask struct {
// We tried to create the same thing in our API, so task properties are absolutely the same as in RecaptchaV2Task except for the "type" property.
// IMPORTANT: hCaptcha seems to have a limit on solved tasks from one IP: about 3 items per 12 hours.
// Take this into account when you build the solving process through your proxy.
func NewHCaptchaTask(websiteURL string, websiteKey string, proxyType string, proxyAddress string, proxyPort int, userAgent string) *HCaptchaTask {
func NewHCaptchaTask(websiteURL string, websiteKey string, proxyType string, proxyAddress string, proxyPort int) *HCaptchaTask {
return &HCaptchaTask{
Type: "HCaptchaTask",
WebsiteURL: websiteURL,
Expand Down

0 comments on commit 4efab59

Please sign in to comment.