Skip to main content

Integrate to Telegram

You can integrate your application to Telegram by creating a Telegram bot to receive and send messages in your Telegram channels. After finishing this guide, you will have a Telegram bot that will answer to messages with the responses generated by your application.

Prerequisites

  • A valid Telegram account
  • Access to manage applications under your TaskingAI workspace

Step 1: Create a Telegram Bot

First you need to create a Telegram bot that will be configured to connect with your TaskingAI application. To create a Telegram bot, follow these steps:

  1. Open your Telegram app and search for the BotFather user, and start conversation.
  2. Type /newbot to create a new bot.
  3. Follow the instructions to set up your bot, including choosing a name and username for your bot. (username will be your bot's unique identifier, and cannot be changed later)
  4. After successfully creating the bot, you will receive a message with the bot's token. Keep this token safe as you will need it later.

Telegram bot father

Step 2: Register the bot on TaskingAI

After the previous steps, you are ready to configure your Telegram integration on TaskingAI platform.

  1. Log in to TaskingAI console, and navigate to the Applications tab under Workspace.
  2. Click on the application you want to integrate with Telegram.
  3. On the tab selection bar on the top, click on the Channels tab.
  4. Select Telegram and provide the necessary information, including Telegram Bot Token and Telegram Bot Username which you obtained from Step 1.
info

The Telegram Bot Username must start with '@' symbol. You can find it in your bot's information page

  1. Click Activate after filling the necessary information.

Telegram integration configuration

After this step, you should be able to send messages to your Telegram bot and receive responses from your TaskingAI application.

Step 3: Add bot to a Telegram group (Optional)

After the previous steps, you are ready to send direct messages to your Telegram bot and receive response from your TaskingAI application. If you want to add the bot to a group, follow these steps:

  1. Open your Telegram bot's information page.
  2. Click the Add to Group or Channel button, and select a target group.
  3. Grant the bot Admin rights so that the bot can read messages from the group and respond to them.

Telegram bot info

Telegram admin permission

Step 4:

Now you can send messages to your Telegram bot and receive responses from your TaskingAI application.

Test telegram integration