Setting Up a Telegram Bot and Webhook for Make.com Integration | Alpha | PandaiTech

Setting Up a Telegram Bot and Webhook for Make.com Integration

A guide to creating a new Telegram bot via BotFather and connecting it to Make.com as a trigger.

Learning Timeline
Key Insights

API Token Security

Your API Token is a master key to your bot. Never share this code or show it in unblurred videos or screenshots, as anyone who possesses it can take control of your AI bot system.

Bot Username Format

Ensure your bot username is unique and must end with 'bot' or '_bot'. If your desired name is already taken, try using 'snake_case' (using underscores) to separate words.

Naming Convention Tips

It is recommended to use the same name for both the 'Webhook Name' and 'Connection Name' in Make.com to simplify troubleshooting and scenario asset management in the future.
Step by Step

How to Set Up a Telegram Watch Update Trigger in Make.com

  1. Log in to your Make.com account and create a new 'Scenario'.
  2. Click the '+' button to add a module and search for 'Telegram Bot'.
  3. Select the 'Watch Updates' trigger from the list of available actions.
  4. Click 'Add' in the Webhook section.
  5. Enter a 'Webhook Name' (e.g., Task Manager Agent).
  6. Click 'Add' in the Connection section and use the same name for consistency.
  7. The system will prompt you for an API 'Token'. Keep this window open and head over to the Telegram app.

Getting an API Token from BotFather

  1. Open the Telegram app and search for @BotFather.
  2. Click 'Start' and type or select the '/newbot' command.
  3. Enter a Display Name for your AI bot (e.g., Make AI Agent Task Manager).
  4. Enter a unique 'username' for the bot. The username must end with the word 'bot' (e.g., task_manager_ai_bot).
  5. Copy the 'HTTP API token' provided by BotFather in the congratulatory message.
  6. Return to Make.com, 'Paste' the token into the 'Token' field, and click 'Save'.
  7. Click 'Save' again on the Webhook window to activate the connection.

Testing the AI Agent Trigger Integration

  1. Right-click the Telegram module in Make.com and select 'Run this module only'.
  2. The module status will change to 'Listening' (waiting for data).
  3. Open your newly created Telegram bot via the link provided by BotFather.
  4. Click the 'Start' button inside the bot chat.
  5. Return to Make.com and verify that a '1' icon appears above the module, indicating that the 'text: /start' data was successfully received as the trigger input for your AI scenario.

More from Build & Deploy Autonomous AI Agents

View All