A telegram bot running on vercel to verify if the user is a human.
video_2022-09-10_10-42-14.mp4
- A vercel account
- The
token
of your telegram bot - The
site-key
andsecret-key
of your hCaptcha
- Create your telegram bot via @BotFather
- Go to the Settings tab to get your secret key.
- Go to the Sites tab and create a new site key.
- Fork this repo or click the button below to deploy it to vercel.
- Go to the Environment Variables tab and add the following variables:
BOT_TOKEN
: The token of your telegram bot.SECRET_KEY
: The secret key of your hCaptcha account.SITE_KEY
: The site key of your active site.
- Redeploy the project to make the environment variables take effect.
- Set the webhook by requesting
https://api.telegram.org/bot[BOT_TOKEN]/setWebhook?url=https://[YOUR_DOMAIN]/webhook/[BOT_TOKEN]