Connecting the bot
Last updated
Last updated
Specify the token and the system will automatically determine the current connection method of your bot (webhook or getUpdates). If possible, it will connect the bot automatically, or give you instructions for connecting.
The Telegram Bot API operates on two work schemes:
webhook: when a user writes to the bot, the Telegram server automatically sends a HTTPS request to your bot's address
getUpdates (long polling): your bot independently requests updates from the Telegram server
To make connecting to the platform simple and fast, we have developed a special proxy server that is installed between the Telegram server and your bot.
Such bots in 95% of cases are connected automatically via the quick setup function
You can manually connect your bot (without entering a token), for this when adding a bot you need to select the appropriate item and follow the instructions. You will need to replace your webhook with ours.
In this case, you will need to add a bit of code to your bot. Since your bot itself contacts the Telegram server, you need to change the URL address from https://api.telegram.org to the address that our system will give you. The platform will proxy absolutely all requests to the Telegram servers.
Most libraries on which bots are developed allow you to change this address. Instructions for specific libraries can be found in . If your library is not on our list or you have difficulties connecting, please contact support.
You can use the API to connect to the platform. This will take a few minutes and require writing only 1 request that will send data.
At the moment, when you receive data from the Telegram Bot API, you need to send this data to our platform using one HTTPS request.
The data should be sent unchanged, corresponding to the data structure of the Telegram Bot API.
You can read more about connecting the bot via the API in this section
Our platform supports working with bot constructors, but not all of them. If your bot is on a constructor, then use the “Quick setup”, the system will do everything for you and if possible, it will connect.
We are always ready to cooperate and integrate with all bot constructors, but unfortunately not all constructors are open to dialogue. Let us know which constructor you use.
You can contact your constructor's support with a request to integrate with our service, they might listen to their customers.
As a rule, constructors work through the webhook method. Sometimes, despite the fact that after connecting the bot operates normally, the constructor checks the settings of your bot and changes the webhook from ours to theirs, as a result our platform stops receiving data and analytics stops working.
Periodically, our platform also checks the correctness of the installed address and if the system sees that the webhook has been changed, you will receive a notification that the analytics are turned off. By default, we do not change these settings automatically, but you can enable this feature and then the analytics robot will be restored automatically.