Setup The Code Required:
- Create a Telegram bot from BotFather and copy its API Token
- Start your newly created bot by sending
/start
in its PM - Then goto Yoshitsu and send
/id
and copy your user id - Open cf-worker.js and edit your Bot token and User ID you got from earlier.
- Copy the edited
cf-worker.js
to your clipboard.
Deploy Cloudflare worker:
- Go to Cloudflare Workers & Create an Account.
- After that, Create a worker and Edit it to Paste the Javascript Code you Copied earlier.
- Save and Deploy the worker and copy its URL.
Add in your website:
- Just replace the form_worker_url in index.html to your cloudflare worker URL and you are good to go!
My Intro web here: