Skip to content

Commit a336aaa

Browse files
author
2captcha
committed
fix minLen and maxLen parameters mapping
1 parent 08e8e00 commit a336aaa

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,8 @@ When you submit any image-based captcha use can provide additional options to he
8484
| Option | Default Value | Description |
8585
| ------------- | ------------- | -------------------------------------------------------------------------------------------------- |
8686
| numeric | 0 | Defines if captcha contains numeric or other symbols [see more info in the API docs][post options] |
87-
| minLength | 0 | minimal answer lenght |
88-
| maxLength | 0 | maximum answer length |
87+
| minLen | 0 | minimal answer lenght |
88+
| maxLen | 0 | maximum answer length |
8989
| phrase | 0 | defines if the answer contains multiple words or not |
9090
| caseSensitive | 0 | defines if the answer is case sensitive |
9191
| calc | 0 | defines captcha requires calculation |

twocaptcha/solver.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -601,6 +601,8 @@ def rename_params(self, params):
601601
'caseSensitive': 'regsense',
602602
'minLen': 'min_len',
603603
'maxLen': 'max_len',
604+
'minLength': 'min_len',
605+
'maxLength': 'max_len',
604606
'hintText': 'textinstructions',
605607
'hintImg': 'imginstructions',
606608
'url': 'pageurl',

0 commit comments

Comments
 (0)