How to Send HTML Form Data to Telegram
Get Telegram messages for every new lead from your HTML form. Connect once on desktop — MFC Connect sends private alerts with no bot token or BotFather setup.
MyFormConnect Team
Telegram is a useful notification channel for small teams and individuals — the mobile app is fast, notifications are reliable, and you don't need a separate account on a paid service. This guide shows how to get a Telegram message for each new form submission without creating your own bot or exposing secrets in the browser.
Some tutorials wire HTML forms to Telegram by calling the Bot API from JavaScript with a bot token. That token is visible in your page source and browser network tab — anyone can copy it and send messages as your bot.
Bot tokens belong on a server, never in frontend code. With MyFormConnect, you don't create a bot or paste a token at all: you connect your Telegram account once in the dashboard, and our platform bot — MFC Connect — sends submission alerts to you privately after each clean submission.
Your HTML form posts to a MyFormConnect endpoint. The endpoint stores the submission, runs spam checks, and — when Telegram is enabled for that form — sends a private message through MFC Connect. Your page never sees a bot token or chat ID.
Telegram linking uses OAuth in the dashboard. Open MyFormConnect on a desktop browser (the connect flow is easiest there), then:
No BotFather setup, no bot token, and no chat ID to look up. Messages go to the Telegram account you signed in with.
You can enable Telegram per form — useful when only some forms should ping your phone.
<form action="https://myformconnect.io/f/YOUR_FORM_UUID" method="POST">
<label for="name">Name</label>
<input id="name" name="name" type="text" required />
<label for="email">Email address</label>
<input id="email" name="email" type="email" required />
<label for="message">Message</label>
<textarea id="message" name="message" rows="5" required></textarea>
<!-- Helps you see which page generated the lead -->
<input type="hidden" name="page_source" value="Contact page" />
<button type="submit">Send message</button>
</form>Set Redirect URL in form settings for a normal POST. With Ajax/fetch, handle success navigation in your own JavaScript.
Each new clean (non-spam) submission triggers a private Telegram message from MFC Connect. A typical alert looks like:
📬 New submission: Contact form
Name: Sarah Müller
Email: [email protected]
Message: I'd like a quote for 10 licences.
View submission
Contact form • 27 Jul 2026, 14:32The header title follows your form template (for example "Contact form" or "New submission"). Standard fields like name and email appear first; other form fields follow. A link opens the full submission in your MyFormConnect dashboard.
Connect Telegram once at the team level, then toggle notifications on each form separately. All enabled forms notify the same linked Telegram account. If several forms share one endpoint across pages, add a page_source hidden field so you can tell which page the lead came from in the message body.
Telegram works well as a secondary notification channel alongside email — email for a reliable record, Telegram for an immediate alert on your phone. Because MFC Connect runs on MyFormConnect's servers, there is nothing sensitive in your page source, and you never manage bot tokens yourself.
Once Telegram is connected and enabled on a form, new clean submissions arrive automatically without further changes to your HTML.
Create a free MyFormConnect form endpoint and skip building your own backend.
Start Free TrialNo credit card required · 5-minute setup