Integrations
Telegram
Get every form submission as a Telegram message, in a private chat with our bot or in a group.
The Telegram integration sends each new submission as a message from the Lazyform bot. You can get the messages in a private chat with the bot, or in a Telegram group so your whole team sees new leads at once.
Available on all plans. See pricing.
What you need
- A Telegram account. That's all: you don't create a bot or copy any IDs. Lazyform uses its own bot, and you connect it by pressing Start in Telegram.
Set it up
- In the dashboard, open your form, then Integrations, then Telegram.
- Click Connect Telegram. You get a one-time link to the Lazyform bot that works for 15 minutes.
- To get messages in a private chat, choose Open in Telegram and press Start. To get them in a group, choose Add to a group, pick the group and add the bot.
- The dashboard notices within a few seconds and saves the integration with that chat.
Only a chat where you pressed Start (or added the bot) can be connected, so nobody can point the bot at a chat that isn't theirs. To move the messages to another chat, open the integration and click Connect another chat.
After connecting, click Test next to the integration to send a test message.
With the REST API
POST /api/v1/integrations/telegram/connectreturns acode, the bot linksurl(private chat) andgroupUrl(group), andexpiresAt.- Open one of the links and press Start (or add the bot to the group).
- Connect it with that code:
POST /api/v1/workspaces/{workspaceId}/connectionswith{ "type": "telegram", "formId": "frm_…", "config": { "code": "…" } }. Leave outformIdto connect it without a form; any form can use it later. Lazyform saves the chat the bot saw for the code. A chat ID sent directly is refused.
If you save before pressing Start, you get telegram_not_started; press Start and send the same request again. See the REST API.
What you'll receive
One message per submission, with:
- the form name
- each field as label: value, in the order the visitor sent them
- the page the form was submitted from
- a link to the submission in your dashboard
Uploaded files appear as links. File links work for 7 days. After that, open the submission in the dashboard.
Troubleshooting
- The dashboard keeps waiting. Make sure you pressed Start in the bot's chat (or added the bot to the group) using the link from the dashboard. Links work for 15 minutes; if yours expired, make a new one.
- The test message never arrives. Check you haven't blocked the bot, and that it's still in the group.
- It stopped working in a group. Someone may have removed the bot from the group. Add it back, then connect again from the integration (Connect another chat).
- The group was upgraded to a supergroup. Telegram gives the group a new chat when that happens, and the delivery log says so. Connect Telegram again from the integration and choose the group.
- Some submissions are missing. Submissions marked as spam aren't sent. Check the spam folder in the dashboard. You can also check the delivery log for that submission and resend it.