Website Leads to Telegram: How to Set Up Notifications Without a CRM
Learn how to link a website form to a Telegram bot, secure your token, comply with Law 152-FZ, and stop losing clients due to email spam filters.

Why email fails: how businesses lose website leads
A typical situation: a potential client finds your website, fills out a service request form, clicks the button, and waits for a call. But the call never comes. The notification email goes out via a standard web server function (PHP mail) and quietly settles in the owner's spam folder. Meanwhile, the client has already opened a competitor's website and submitted a request there. By the time the email is finally discovered three days later, the deal is long lost.
For a small business, the speed of first contact is critical. The faster a manager or specialist reaches out to a person, the higher the probability of starting a conversation. However, many business owners postpone fixing this issue, assuming that fast notifications require implementing a complex and expensive CRM system with monthly paid licenses for every employee. In practice, setting up lead notifications in Telegram solves this task reliably, free of charge, and without unnecessary bureaucracy.
How the "Website Form → Server → Telegram Bot" setup works
The Telegram messenger provides a free and stable tool: the Bot API. This is an application programming interface that allows third-party programs to send text messages, links, and files to chats or channels.
For sending feedback form submissions to Telegram to work smoothly, the data transfer chain should look like this:
- The user fills out the form: enters their name, phone number, comment, and clicks the submit button.
- The data is sent to your server: a backend script (for example, in Node.js or PHP) validates the entered fields and filters out spam.
- The server creates a request to the Telegram Bot API: over a secure HTTPS connection, the server sends the formatted message to the messenger's API using a secret access token.
- Telegram delivers the message: a push notification with all the client's contact details arrives instantly in your personal chat, employee group, or private channel.
This setup ensures that the message appears on your smartphone and desktop screens simultaneously within seconds. At PL – Innovativ Digitalbau, we often use this approach as a standard baseline when developing websites and services for small teams.
Step-by-step guide: connecting a website form to a Telegram bot
A basic integration can be set up in a few clear steps without requiring paid third-party services.
Step 1. Creating a bot via BotFather
In Telegram search, find the official @BotFather bot with the blue verification checkmark. Send it the /newbot command, specify a clear name (for example, "My Company Website Requests"), and a unique username ending in bot. In response, BotFather will send a unique key — an API Token (a string of digits and Latin characters). This token gives full control over the bot.
Step 2. Obtaining the Chat ID
The bot needs to know exactly where to send messages. Create a separate work group in Telegram, add the newly created bot to it, and assign it as an administrator. To find out the group identifier (Chat ID), you can temporarily add a service bot (for example, @userinfobot) to the chat, or send a test message and inspect incoming updates using the getUpdates method in a browser. Group chat IDs usually start with a minus sign.
Step 3. Writing a server handler
The website form should not communicate with Telegram directly from the visitor's browser. A small handler script (endpoint) is created on the server. It accepts the form data and formats it into readable text:
- Source: Consultation form on home page
- Name: Ivan
- Phone: +7 (999) 000-00-00
- Preferred time: after 14:00
After that, the script makes a POST request to the Telegram API endpoint: https://api.telegram.org/bot<YOUR_TOKEN>/sendMessage with the chat_id and text parameters.
Security and compliance (152-FZ): protecting your token and following the law
Despite the apparent simplicity of this task, two critical mistakes are common — one technical and one legal.
Major technical mistake: exposing the token in website code
You should never insert a bot token directly into the page's frontend JavaScript code. Any visitor can click "View Page Source", copy your token, and gain the ability to read the bot's messages, send spam, or completely block message delivery. Integrating a form with Telegram must be isolated: the token should be stored exclusively on the server in secure environment variables (in a .env file).
Legal requirements (Federal Laws No. 152-FZ and 38-FZ)
If your website has a form with fields like "Name", "Phone", or "Email", you are collecting personal data. Under Federal Law No. 152-FZ "On Personal Data", you must follow key rules:
- Below every form, there should be a checkbox (or a clear notice next to the submit button) linking to your current Privacy Policy. The user must confirm consent to data processing.
- If you plan to use the collected contacts for marketing newsletters, Federal Law No. 38-FZ "On Advertising" requires separate explicit user consent (it cannot be hidden behind general data processing consent).
- The server where the request database of Russian citizens is initially processed and stored must be located within Russia.
Spam protection and backing up lead data
When you set up lead notifications without a CRM, open access to the form can attract spam bots scanning the web. If a bot starts submitting the form hundreds of times per minute, Telegram Bot API rate limits will be triggered (under platform rules, a bot must not send more than 30 messages per second to different chats and no more than one message per second to a single chat), and notifications will stop arriving.
How to protect your form from bots:
- Invisible honeypot: add a hidden field to the form that human users cannot see, but automated bots fill out. If the script detects that this field is filled, sending to Telegram is simply blocked without prompting a CAPTCHA.
- Smart CAPTCHA: connecting modern services (such as Yandex SmartCaptcha) reliably blocks bots without annoying real clients with complex images.
Backup: connecting with Google Sheets
A messenger is ideal for instant response, but it is not convenient for tracking monthly totals or building end-to-end analytics. To avoid losing website leads due to connection drops or accidental chat deletion, configure dual submission: when the button is clicked, the server sends a notification to Telegram and simultaneously logs a row in a Google Sheet via the Google Sheets API. This ensures you always have a reliable, structured archive of all inquiries, complete with dates and ad campaign UTM tags.
When Telegram becomes too limited and you need a full CRM
This lead automation for small business handles the needs of small teams, independent specialists, repair shops, local services, and professional practices very well. However, it has scaling limits.
It makes sense to switch to a professional CRM system when:
- The flow of leads exceeds 15–20 per day, and tracking statuses ("called back", "paid", "rejected") in a chat becomes chaotic.
- The sales team has multiple managers who need automatic lead assignment and response time monitoring.
- You need to issue invoices automatically, track the sales funnel, and trigger automated follow-up email sequences.
If your business is still building a steady client stream or provides bespoke expert services, a simple bot will save you tens of thousands of rubles on paying for unnecessary features of complex platforms.
What you can do yourself vs. when to call a developer
If your website runs on a popular website builder (such as Tilda or Nethouse), you can connect a bot to the form in 15 minutes using built-in dashboard integrations — no developer help required.
However, if your website is custom-coded, uses a modern framework (React, Next.js, Node.js), or has a custom page structure, it is better to involve a specialist. A developer will properly hide access keys, set up spam filtering, accurately pass ad campaign UTM parameters, and format legal consent texts in compliance with data privacy laws.
Check out examples of our work in the studio portfolio or read other articles on setting up business processes in our blog. If you need to set up instant lead capture, prevent customer loss, or develop new features for your website, write to us via the contact form or directly on Telegram at @pavellevdin. For complex projects, you can fill out our online brief — we will discuss your project without pushing unnecessary services.


