Connecting outbound data
Outbound data refers to all requests the bot sends to the user. Connecting the processing of this data gives you access to new reports and lets you see the full conversation history between the user and the bot (on the relevant plans).
How do I connect it?
Similar to connecting inbound traffic, there are 2 ways to connect.
Proxying
If the bot runs via Webhook
You'll need to add a bit of code. You need to change the URL from https://api.telegram.org to the address our system provides you. The platform will proxy absolutely all requests to Telegram's servers.
Most libraries used to build bots allow you to change this address. We have instructions for connecting getUpdates bots, and they're similar for connecting outbound traffic for webhook bots. The only difference is that you don't need to send getUpdates-type requests. You'll find all the instructions for specific libraries in this section.
If your library isn't on our list or you run into trouble connecting, please contact support.
If the bot runs via getUpdates
If you've connected your bot (inbound traffic) to graspil, you don't need to do anything else. All proxied requests will be processed.
API
The method for sending data via API isn't ready yet. We'll add it soon.
You'll need to take the request and response from the Telegram API and forward them to graspil.
Last updated