Skip to content

The Lightweight Contact Form which send contact requests on your Telegram

License

Notifications You must be signed in to change notification settings

xditya/Contact-Form

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Contact Form


Features :

  • Cool Layout
  • Message goes on your Telegram
  • 7 KB of JS Code
  • Serverless Backend (Cloudflare Worker)
  • One Line of Integration

Deploy :

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" : "me@thetuhin.com",
   "subject" : "Just a Testing",
   "message" : "Just a Testing"
}

Connect :

License & Copyright :

About

The Lightweight Contact Form which send contact requests on your Telegram

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 87.9%
  • HTML 12.1%