Coderboi7x / sveltekit-telegram-captcha-bot

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Telegram Captcha Bot /w Cloudflare Turnstile

a captcha bot that leveraging telegram login api and cloudflare turnstile, add @SvelteCaptchabot to your group!

Chat Preview Site Preview
s1 s2

Technology

  • Telegram API
  • Baselime.io
  • Cloudflare D1
  • Cloudflare Pages
  • Cloudflare Durable Object

Schema Init

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

Bot Config @BotFather

  1. make sure you turn off privacy config
  2. setting's bot login domain with the same domain as webhook (for telegram auth purpose)

Deployment

  1. Deploy using Cloudflare Pages GUI
  2. connect the forked version of this project
  3. select SvelteKit preset
  4. set environment variable (basically the same as .env.example)
  5. Click "Deploy"
  6. Access yoursite.com/webhook/activate to activate Telegram Webhook

About


Languages

Language:JavaScript 88.0%Language:Svelte 8.3%Language:HTML 3.7%