Graspil APi
  • Other languages
  • Change log
  • Connecting the bot
    • Connecting the getUpdates bot
    • Connecting a Bot via API
    • Outgoing Data Connection
    • Connecting a Mini App
    • Connecting the bot on the constructor
  • API
    • Authorization
    • Sending a target event/achieving a goal
    • Connecting the bot via the API
  • Platform
    • Processing of “start” (UTM) parameters
      • Configuring the “start” Parameter Processing
    • Commands/Actions
    • Attribution Models
Powered by GitBook
On this page
  • How to Connect?
  • Proxying
  • If the bot operates via Webhook
  • If the bot operates via getUpdates
  • API
  1. Connecting the bot

Outgoing Data Connection

PreviousConnecting a Bot via APINextConnecting a Mini App

Last updated 9 months ago

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:

  1. Proxying

  2. 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 . 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.

If you are only sending getUpdates requests through our servers and excluding other requests, then outgoing data will not 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.

section