Integrations
Published: 27-Jul-2026 Updated: 12-Aug-2026

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.

MFC

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.

Why you must not put the bot token directly in your page

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.

How the safe pattern works

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.

Step 1: Connect Telegram on desktop

Telegram linking uses OAuth in the dashboard. Open MyFormConnect on a desktop browser (the connect flow is easiest there), then:

  1. Go to your team's Integrations page
  2. Open Telegram and click Connect with Telegram
  3. Sign in on Telegram and approve messages from MFC Connect — our platform bot that delivers submission alerts
  4. Optionally click Send test message to confirm alerts arrive in your Telegram app

No BotFather setup, no bot token, and no chat ID to look up. Messages go to the Telegram account you signed in with.

Step 2: Enable notifications on your form

  1. Create a form in MyFormConnect (or open an existing one)
  2. Open the form's Integrations → Telegram panel
  3. Turn on Enable Telegram notifications and save
  4. Copy the form endpoint URL for your HTML form

You can enable Telegram per form — useful when only some forms should ping your phone.

Step 3: Add the form to your page

<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.

What the Telegram message looks like

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:32

The 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.

Using Telegram with multiple forms

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.

A practical notification setup

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.

Ready to collect form submissions?

Create a free MyFormConnect form endpoint and skip building your own backend.

Start Free Trial

No credit card required · 5-minute setup