Outgoing Data Connection
Outgoing data refers to all the requests that the bot sends to the user. Connecting the processing of this data provides the opportunity to generate new reports and view the complete conversation history between the user and the bot (available on the corresponding plans).
How to Connect?
Similar to connecting incoming traffic, there are two ways to connect outgoing data:
Proxying
API
Proxying
If the bot operates via Webhook
You'll need to add a bit of code. Specifically, you must change the URL from https://api.telegram.org
to the address provided by our system. The platform will proxy all requests to the Telegram servers. Most libraries used for bot development allow you to change this URL.
We have instructions for connecting getUpdates bots, which are also applicable for connecting outgoing traffic for webhook bots. The only difference is that you don't need to send getUpdates requests.
All instructions for specific libraries can be found in this section. If your library is not listed or if you encounter difficulties with the connection, please contact support.
If the bot operates via getUpdates
If you've already connected the bot (incoming traffic) to Graspil, there's nothing more you need to do. All proxied requests will be processed.
API
The method for sending data through the API is not yet available. We will be adding it soon.
You will need to take the request and response from the Telegram API and forward them to Graspil.
Last updated