- Home
- Integrations
- Webhook
- Webhook + Telegram
Website leads to Telegram: the form sends data, the bot posts a message
To get website leads in Telegram, nana800 uses two blocks: webhook receives the form data, and Telegram message send posts it to a private chat, group or channel. All you need is a bot token from @BotFather, with no server of your own. One lead takes two basic block runs, 1,000 runs cost $1, and your balance is topped up to $3.50 for free every month.
Build it in the builderWhat you can automate
- Contact form leads go to the owner in a private chat or to the sales team in a work group
- Website orders with the name, phone number and order items land in a channel or a separate group topic
- An admin sees every online booking right away: name, phone number and the chosen time
- Quiz or calculator answers from a landing page arrive as one message, so the manager calls with the numbers at hand
- Alerts from any app or service that can send a request to a webhook address
How to set it up
- 1
Create a bot and find the chat ID
Send /newbot to @BotFather and copy the bot token. Press Start in your bot, otherwise it cannot message you. For a team group, add the bot as a member. The @getmyid_bot bot shows the chat ID, and group IDs start with -100.
- 2
Add the webhook trigger
A webhook is an address your website sends the form data to. Create a scheme in the builder and add the webhook trigger. Choose POST in the method field and enter a path such as /lead in the path field. The path starts with a slash and does not end with one.
- 3
Build the message in Telegram message send
Add the Telegram message send block and paste the token and chat ID. In the message text, write a lead template and insert the form fields from the webhook data: they sit in body under the same names as in your form, for example name and phone. Pick the plain_text format so characters typed into the form cannot break the message.
- 4
Put the webhook address into your form
Turn the scheme on and press the API button in the builder, where each webhook has a Copy address button. Paste the address into the form settings if your website builder can send forms to a webhook, or into your website code. While the scheme is off, the webhook answers with error 409.
- 5
Send a test lead
On the API page open the Try it tab, put JSON like {"name": "Test", "phone": "+15550000000"} into the request body and press Send. The message arrives in Telegram. If it does not, open the result of the send block: the error_text field holds the Telegram answer. An enabled scheme costs $0.0042 per hour.
Pricing
A run of a Webhook block costs up to $0.001, a run of a Telegram block costs $0.001. Every month the balance is topped up to $3.50 for free, an enabled scheme costs $0.0042 per hour.
Services in this connection
- Webhook
Receive website leads and service events with a webhook and answer requests with no server and no code. Free balance every month, no card needed.
- Telegram
Build a Telegram bot without code: reply to messages, add buttons, send leads and alerts to a chat, group or channel. Free balance every month, no card needed.
Frequently asked questions
Build your first scheme for free
Sign-up is free and needs no card. Every month the balance is topped up to $3.50 for free, enough for about 3,500 runs of basic blocks.
Build it in the builder