# Send data to Telegram

{% hint style="info" %}
See the changelog of the **Telegram** Data sink type [here](/data-sinks/telegram-data-sink.md).
{% endhint %}

## Overview

Onum supports integration with [Telegram](https://telegram.org/?setln=en).

Telegram is a cloud-based instant messaging and voice over IP service known for its focus on speed, security, and privacy. It allows users to exchange messages, photos, videos, and files of any type, as well as make voice and video calls.&#x20;

## Onum Setup

{% stepper %}
{% step %}
Log in to your Onum tenant and click **Data Sinks> New Data sink**.
{% endstep %}

{% step %}
Double-click the **Telegram** Sink.
{% endstep %}

{% step %}
Enter a **Name** for the new Data Sink. Optionally, add a **Description** and some **Tags** to identify the Sink.
{% endstep %}

{% step %}
Decide whether or not to include this Data sink info in the metrics and graphs of the [**Home**](/the-workspace/home.md) area.
{% endstep %}

{% step %}
Enter the **Bot Token**<mark style="color:red;">**\***</mark>  that will be used to access the [Telegram bot.](https://www.siteguarding.com/en/how-to-get-telegram-bot-api-token) Add it from your [Secrets](/administration/global-settings/organization-settings/secrets-management.md) or create a new one.

A **Telegram Bot Token** is required to authenticate and interact with Telegram’s Bot API. You can obtain it from the **BotFather** by selecting the bot and choosing **API Token**, or by typing `/mybots`.
{% endstep %}

{% step %}
The **Chat ID**<mark style="color:red;">**\***</mark> is needed to access the Telegram chat (user or group). Type `/start` to find it.
{% endstep %}

{% step %}
Establish a limit for the **Maximum** **requests per second.**<mark style="color:red;">**\***</mark> The minimum value is `1`, and the maximum value is `100`.
{% endstep %}

{% step %}
If your organization uses proxy servers, activate the **Proxy configuration** toggle and establish the connection here.
{% endstep %}

{% step %}
In the [Secrets](/administration/global-settings/organization-settings/secrets-management.md) area, **New secret** to create a new one:

* Give the secret a **Name**.
* Turn off the **Expiration date** option.
* Click **Add new value** and paste the corresponding value.
* Click **Save**.

<figure><picture><source srcset="/files/NeeWsSQzoChVxRIY76Nt" media="(prefers-color-scheme: dark)"><img src="/files/1oTccyPmgZJ1laY7IhZH" alt=""></picture><figcaption></figcaption></figure>

{% hint style="info" %}
Learn more about secrets in Onum in [this article](/administration/global-settings/organization-settings/secrets-management.md).
{% endhint %}

You can now select the created secrets in the configuration.
{% endstep %}
{% endstepper %}

Click **Finish** when complete. Your new Data sink will appear in the **Data sinks** area list.

## Pipeline configuration

When it comes to using this Data sink in a [Pipeline](/the-workspace/pipelines.md), you must configure the following output parameters. To do it, simply click the Data sink on the canvas and select **Configuration**.

### Output configuration

<table><thead><tr><th width="169.96875">Parameter</th><th>Description</th></tr></thead><tbody><tr><td><strong>Raw message</strong><mark style="color:red;">*</mark></td><td>Select the incoming field containing the message to send on.</td></tr></tbody></table>

Click **Save** to save your configuration.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.onum.com/the-workspace/data-sinks/data-sink-integrations/send-data-to-telegram.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
