Telegram Integration Setup Instructions

Integrating Telegram with Ocamba allows you to send automated messages, notifications, and alerts directly to your Telegram groups. This setup is straightforward and requires creating a Telegram bot, retrieving the necessary credentials, and configuring the integration within Ocamba.


Step 1: Create a Telegram Bot

Open Telegram and search for the BotFather.

Start a conversation with the BotFather by clicking the Start button.

Use the /newbot command to create a new bot.

Follow the prompts to provide a name and username for your bot.

Once the bot is created, the BotFather will provide an API token. Copy this token for later use.

Botfather API Token Generation

Info
An example of token - 7785628317:AAFMGtXgnQxlJO7KtK6l4e3lv-2G2S_w-VM

Step 2: Add the Bot to a Telegram Group

Open Telegram and create a new group or select an existing group where messages will be sent.

Add the bot to the group as a member:

Open the group chat.

Tap on the group name at the top, then Add Members.

Search for your bot’s username and add it to the group.


Step 3: Retrieve the Group ID

After creating your bot in Step 1, you will have received an API token from BotFather.

Use the following curl command to fetch updates from Telegram’s API:



curl "https://api.telegram.org/bot/getUpdates"

The Group ID is the value under chat.id


Step 4: Configure Telegram in Ocamba

  1. Log in to your Ocamba account.

  2. Navigate to the Hood Settings > Integrations section.

  3. Select Telegram from the list of available integrations.

Telegram Integration Collection Example


Once the Add Telegram Configuration is clicked the system will require that you input the following data:

  • Name: How you want to call your Telegram integration
  • Telegram Auth Token: The API token from Step 1.
  • Group ID: The value retrieved from Step 3.

Hood Telegram Integration Setup


Make sure that you toggle Active before saving the configuration.

Finnaly, after all of the required data is input, click on the Validate in order to validate the credentials.

After the successfull setup, your Telegram integration will be available to be used in the Campaings creation by selecting its name under the Telegram channel box during the Channels step.

On This Page