Skip to content

Commit b0f5523

Browse files
committed
Fix audio method
1 parent f6ec1c0 commit b0f5523

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

twocaptcha/async_solver.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ async def audio(self, file, lang, **kwargs):
122122
if not lang or lang not in ("en", "ru", "de", "el", "pt", "fr"):
123123
raise ValidationException(f'Lang not in "en", "ru", "de", "el", "pt", "fr". You send {lang}')
124124

125-
result = await self.solve(body=body, method=method, **kwargs)
125+
result = await self.solve(body=body, method=method, lang=lang, **kwargs)
126126
return result
127127

128128
async def text(self, text, **kwargs):

twocaptcha/solver.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ def audio(self, file, lang, **kwargs):
243243
if not lang or lang not in ("en", "ru", "de", "el", "pt", "fr"):
244244
raise ValidationException(f'Lang not in "en", "ru", "de", "el", "pt", "fr". You send {lang}')
245245

246-
result = self.solve(body=body, method=method, **kwargs)
246+
result = self.solve(body=body, method=method, lang=lang, **kwargs)
247247
return result
248248

249249
def text(self, text, **kwargs):

0 commit comments

Comments
 (0)