This content originally appeared on DEV Community and was authored by YOGESHWARAN R
Make unworking contact or feedback forms to work. Here is a simple script that makes your form work. All the form data in your form are sent to you as a Telegram Message.
Here is the Quick Demo
Refer GitHub for more details
yogeshwaran01 / formBot.js
Make your contact and feedback form to work perfectly with Telegram
formBot.js
Make your form to work
If form is submited, all form data are send to you as telegram Message
Qucik Demo
Click here for quick demo
Simple Usage
<script src="https://cdn.jsdelivr.net/gh/yogeshwaran01/formBot.js@1.2.0/formBot.min.js" ></script>
In index.html
- Name the id of your form as
formBot
- set new attribute
names
. value ofnames
is name of all input elements eg:name="name mail message"
. Here name, mail, messgage are the value ofname
attribute of input elements. - set other attribute
chatId
of your telegram. Get chat id from Telegram Bot.
<form id="formBot" names="name mail message" chatId="104753182211">
<label for="name">Name</label>
<input type="text" name="name">
<label for="mail">Mail</label>
<input type="text
…
This content originally appeared on DEV Community and was authored by YOGESHWARAN R
YOGESHWARAN R | Sciencx (2022-02-08T06:22:54+00:00) Make your form to work perfectly with Telegram. Retrieved from https://www.scien.cx/2022/02/08/make-your-form-to-work-perfectly-with-telegram/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.