- Cool Layout
- Message goes on your Telegram
- 7 KB of JS Code
- Serverless Backend (Cloudflare Worker)
- One Line of Integration
Setup the Backend 👇
- Create a Telegram Bot from Botfather & Grab the Token.
- Goto your created bot and send
/start
. - Now GoTo userinfobot send it any message it will give your Telegram ID (9 Digit) and copy the ID.
- Open
cf-worker.js
and copy the whole code. - Go to
Cloudflare Workers
and create a worker & paste the copied code. - Replace the
BOT_TOKEN
&CHATID
with your previously copied Bot Token and User ID. - Save and Deploy & copy the Worker Url
Connect it with your website 👇
- Paste this Script :
<script src="https://cdn.jsdelivr.net/gh/cachecleanerjeet/contact-form@master/src/contact-form.min.js" id="contactform" form_worker_url="https://yourapp.example.workers.dev/"></script>
<!-- Replace https://yourapp.example.workers.dev with your backend url-->
Use The Backend API 👇
- This is very simple to, Just do a POST or GET request with this JSON Body
{
"name" : "Tuhin Kanti Pal",
"phone_no" : "000000000",
"email" : "[email protected]",
"subject" : "Just a Testing",
"message" : "Just a Testing"
}
- This Project is Apache-2.0 Licensed
- Copyright 2021 by Tuhin Kanti Pal