https://github.com/codenoid/sveltekit-telegram-captcha-bot
https://github.com/codenoid/sveltekit-telegram-captcha-bot
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/codenoid/sveltekit-telegram-captcha-bot
- Owner: codenoid
- Created: 2024-04-17T12:50:36.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-06-21T15:59:44.000Z (over 1 year ago)
- Last Synced: 2025-04-17T04:19:28.179Z (11 months ago)
- Language: JavaScript
- Size: 174 KB
- Stars: 10
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Telegram Captcha Bot /w Cloudflare Turnstile
a captcha bot that leveraging telegram login api and cloudflare turnstile, add [@SvelteCaptchabot](https://t.me/@SvelteCaptchabot) to your group!
| Chat Preview | Site Preview |
| -------------------- | :-------------------: |
|  |  |
## Edit
Due to worst quality of Telegram Webhook (sometimes Telegram just stop sending updates), I made another part that having task to getting the join service message, check the `bot-get-update` folder
## Technology
- [x] Telegram API
- [x] Baselime.io
- [x] Cloudflare D1
- [x] Cloudflare Pages
- [ ] Cloudflare Durable Object
## Schema Init
```sh
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