a captcha bot that leveraging telegram login api and cloudflare turnstile, add @SvelteCaptchabot to your group!
Chat Preview | Site Preview |
---|---|
- Telegram API
- Baselime.io
- Cloudflare D1
- Cloudflare Pages
- Cloudflare Durable Object
npm i
npx wrangler d1 create db-name
# paste the output inside wrangler.toml file
npx wrangler d1 execute db-name --remote --file=db.sql
- make sure you turn off privacy config
- setting's bot login domain with the same domain as webhook (for telegram auth purpose)
- Deploy using Cloudflare Pages GUI
- connect the forked version of this project
- select
SvelteKit
preset - set environment variable (basically the same as .env.example)
- Click "Deploy"
- Access
yoursite.com/webhook/activate
to activate Telegram Webhook