how to pass solved captcha code and id #775
Unanswered
hippo2point0
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
on sending dms and encountering an hcaptcha ive managed to send the captcha request to 2captcha with the twocaptcha python library and receive the solved code and id. my question is how can i pass these back through the api to resend the dm.
try:
await message.author.send('hi')
print('\n***DM sent successfully***\n')
except Exception as e: # this is the captcha exception
print('Captcha required, solving...')
#this solver object is the twocaptcha solver
result = solver.hcaptcha(sitekey=SITEKEY, url='https://discord.com')
captcha_id = result['captchaId']
hcaptcha_code = result['code']
await message.author.send('hi') # how can i send this
Beta Was this translation helpful? Give feedback.
All reactions