Home
Help
How to Connect Webhooks with Telegram (Your Bot)

How to Connect Webhooks with Telegram (Your Bot)

How to Connect Webhooks with Telegram (your bot)

The integration will allow you to get new leads from Webhooks and transfer them to Telegram (your bot) to send messages. This will allow you to automate workflows efficiently and save a lot of time. This way you can automate the process of processing data from the Webhooks using Telegram as efficiently as possible.

Let's go through the entire Webhooks with Telegram setup steps together!

Navigation:

1. What will integration Webhooks with Telegram do?
2. How to connect your Webhooks account?
3. How to connect your Telegram account to?
4. How to set up data transfer to Telegram in the selected action? 
5. An example of the data that will be sent to your Telegram.
6. Auto-update.

To start setup click "Create Connection".

How to Connect Webhooks with Telegram (your bot) | Create connection

Select a system as the Data Source. In this case, you must specify Webhooks.

How to Connect Webhooks with Telegram (your bot) | Data Source system selection

Next, you need to specify the system to which the data from the Webhooks will be transmitted. In this case, you must specify Telegram.

How to Connect Webhooks with Telegram (your bot) | Data Destination system selection

The next step is to select the Webhooks account from which SaveMyLeads will get the data.
If there are no account connected to the system, click "Connect account".  

If desired, you can change its name or simply click "Continue".

How to Connect Webhooks with Telegram (your bot) | Data Source account
How to Connect Webhooks with Telegram (your bot) | Data Source account

When the connected account is displayed in the "active accounts" list, select it for further work.

How to Connect Webhooks with Telegram (your bot) | Data Source account selection

Next, you need to copy the "URL for receiving data", click "Continue" and go to your account, that supports data transfer via Webhooks.

How to Connect Webhooks with Telegram (your bot) | Data Source account connection

For the example work in this help, we will copy this link and go to the Kajabi account, setup an publication for transferring data via Webhooks.

You can do the same on any other system that supports Webhooks.

Go to the "Sales" - "Offers" tab, then select the publication from which you want to Data Destination

How to Connect Webhooks with Telegram (your bot) | Data Source account connection

Click on three dots and select "Webhooks".

How to Connect Webhooks with Telegram (your bot) | Data Source account connection

In the "Purchase Webhook URL" field, paste the link you copied earlier from the SaveMyLeads system. After that, click "Send Test" to create a test event in the Kajabi system.

If you don't see the "Send test" button, click "Save" and go to the "Webhooks" section again.

How to Connect Webhooks with Telegram (your bot) | Data Source account connection

The next step is to select the Telegram account to which the data will be sent.

If there are no accounts connected to the SaveMyLeads system, click "Connect account".  

How to Connect Webhooks with Telegram (your bot) | Data Destination account connection

In the window that appears, in the “Bot token” field, enter the token of your bot, also indicate the name of the account, and click “Save”.

Note! In order to find the bot and its token, that you want to connect to SaveMyLeads, go to Telegram, enter @BotFather (https://t.me/BotFather) in the search bar. Next click Menu and select /mybots, click on the bot you want to connect and select API token, then copy the token and paste it into the appropriate field in SaveMyLeads.

How to Connect Webhooks with Telegram (your bot) | Data Destination account connection

Next a new window will open in which you need to copy the data from the connection line below.

Then click on the button with the name of your bot and click Open Telegram, this will automatically open the Telegram application or you can not use the button, but simply manually go to your Telegram application.

How to Connect Webhooks with Telegram (your bot) | Data Destination account connection

In your Telegram application, in the search bar, enter @indicate_your_bot_username here

Click on the bot's profile and click "Start". If you have connected this bot before, you will see a “Restart” button, click it.

How to Connect Webhooks with Telegram (your bot) | Data Destination account connection

 Send a message to the bot with the connection string, that was copied in the SaveMyLeads system.

Wait for a response message indicating a successful connection to the system.

After this return to the SaveMyLeads system and continue configuration

How to Connect Webhooks with Telegram (your bot) | Data Destination account connection
How to Connect Webhooks with Telegram (your bot) | Data Destination account connection
How to Connect Webhooks with Telegram (your bot) | Data Destination account connection

When the connected account is displayed in the "active accounts" list, select it for further work.

Note!
If you want messages to come to the channel or group, you need to add our bot to the group or channel, run it there and configure it. As a result, the group or channel should receive an answer that the bot is connected successfully.

If you have previously connected our bot to yourself, and now you want to connect it to a group or channel, you need to perform the following algorithm:
1. You need to disable our bot, clear the entire history and completely delete the dialogue with the bot.
2. In our system, go to the Accounts - Messengers - Telegram and delete all created accounts.
3. Go to your connection in the Data Destination to the "Access" stage and create a new account.
4. According to the help you need to re-configure Telegram, only this time first you need to create a group or channel, add our bot, and send a string with a connection. After that, send the test data to Telegram and check that getting.


Attention! If your account is in the "inactive accounts" list, check your access to this account!

How to Connect Webhooks with Telegram (your bot) | Data Destination account selection

In this section, the fields will be assigned according to the template. You can completely change it or leave it as is.

Now, you need to compose a message from the data that will be sent to the Telegram bot.

In order to add a variable, click on the field "Message" and select the desired variable from the dropdown list. If necessary, you can write the data manually.

Note that you can pass not only variables from the source, but also combine them with system data such as date, time, month, year, and day, if necessary.  

How to Connect Webhooks with Telegram (your bot) | Assigning fields
How to Connect Webhooks with Telegram (your bot) | Assigning fields

Now  see the test data that will be send to Telegram.

Click "Send test data to Telegram" and go to the Telegram cabinet in the appropriate group to test the connection.

If something does not suit you - click "Back" and go back one step.

If everything suits you, click "Finish setup" to continue the setup.  

How to Connect Webhooks with Telegram (your bot) | Test data

On the main screen, click on the gear icon to select name of the connection and select a group for it, if necessary.

How to Connect Webhooks with Telegram (your bot) | Name and group connection

When the slider is in the position as shown in the picture - auto-update works. If you want to disable communication, click this slider.

How to Connect Webhooks with Telegram (your bot) | Enable auto-update

This completes the integration setup between Webhooks with Telegram! See how easy it is!?

Now you don't have to worry, SaveMyLeads will do everything on its own!