Replies: 1 comment
-
Here's a basic example on how to use import aiohttp
import discord
class CaptchaSolver(discord.CaptchaHandler):
async def fetch_token(self, data: dict, proxy: str, proxy_auth: aiohttp.BasicAuth) -> str:
# Obtain a captcha key using the information given...
token = ...
return token
client = discord.Client(captcha_handler=CaptchaSolver(), ...)
client.run() |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
My bot has to parse messages in a chat and respond to them with DMs. Sometimes there's a hcaptcha pops up and I need a way to parse and solve it. Does the library provide any tools for this? I noticed there's discord.CaptchaHandler, but I don't see how I can handle the captcha tokens.. Any direction?
Beta Was this translation helpful? Give feedback.
All reactions