Back to Blog
n8ntelegramintegrationtutorialautomation

n8n + Telegram Integration: Build Powerful Bots and Alerts in Minutes

n8nautomation TeamApril 10, 2026
TL;DR: n8n's Telegram node lets you build custom bots, send alerts, and create interactive workflows without writing bot code from scratch. This guide walks through setting up a Telegram bot token, connecting it to n8n, and building five practical workflows — from server monitoring alerts to AI-powered chat assistants.

The n8n Telegram integration turns one of the world's most popular messaging apps into a real-time command center for your automations. Whether you need instant alerts when a server goes down, a bot that answers customer questions with AI, or a daily digest of RSS feeds delivered straight to your phone, n8n's Telegram node handles it with zero custom code.

Telegram's Bot API is one of the most developer-friendly messaging APIs available, and n8n wraps it in a visual, no-code interface. You get the flexibility of a custom bot without the hassle of hosting bot frameworks, managing webhook endpoints, or writing message-parsing logic.

Why Telegram + n8n Is a Powerful Combination

Telegram bots are free to create, have no rate limits for most use cases, and support rich messages with buttons, images, documents, and inline keyboards. Pair that with n8n's 400+ integrations and you get a notification and interaction layer that connects to virtually any service.

Here's what makes this pairing stand out:

  • Two-way communication: n8n can both send messages to Telegram and receive messages from Telegram using the Telegram Trigger node. This means your bots can be interactive, not just one-way alert channels.
  • Rich media support: Send photos, documents, videos, locations, and contact cards directly from your workflows.
  • Inline keyboards: Create buttons that users can tap to trigger different workflow branches — perfect for approval flows and interactive menus.
  • Group and channel support: Post to groups, channels, or individual chats. Use the same bot across multiple contexts.
  • No hosting headaches: Unlike building a bot with Python's python-telegram-bot library, n8n handles the webhook server, message routing, and retry logic for you.

Setting Up Your Telegram Bot

Before connecting to n8n, you need a Telegram bot token. This takes about two minutes:

  1. Open Telegram and search for @BotFather — this is Telegram's official bot for creating bots.
  2. Send the command /newbot.
  3. Choose a display name (e.g., "My Automation Bot").
  4. Choose a username ending in bot (e.g., my_automation_bot).
  5. BotFather replies with your API token — a string like 123456789:ABCdefGHIjklMNOpqrsTUVwxyz. Save this.

Tip: You can also configure your bot's description, profile photo, and commands list through BotFather. Use /setdescription and /setcommands to make your bot look polished before sharing it with your team.

Next, you need your Chat ID. The easiest method: send any message to your new bot, then open this URL in your browser (replacing YOUR_TOKEN):

https://api.telegram.org/botYOUR_TOKEN/getUpdates

Look for the "chat":{"id":123456789} value in the JSON response. That's your Chat ID. For group chats, the ID will be negative (e.g., -1001234567890).

Connecting Telegram to n8n

In your n8n instance, the setup is straightforward:

  1. Go to CredentialsAdd Credential → search for Telegram.
  2. Paste your bot API token into the Access Token field.
  3. Click Save. n8n validates the token automatically.

Now you have two key nodes available:

  • Telegram node (action node): Sends messages, photos, documents, edits messages, pins messages, and more. Use this to push content to Telegram.
  • Telegram Trigger node (trigger node): Listens for incoming messages, callback queries (button presses), and other updates. Use this to react to user interactions.

If you're running n8n on n8nautomation.cloud, the Telegram Trigger works immediately since your instance is already publicly accessible with a stable URL. Self-hosted users need to ensure their n8n instance is reachable from the internet for webhook-based triggers.

Workflow 1: Server Monitoring Alerts

This is the most common Telegram automation: get instant alerts when something breaks. Here's a workflow that pings your website every five minutes and alerts you on Telegram if it goes down.

Nodes in this workflow:

  1. Schedule Trigger — set to run every 5 minutes.
  2. HTTP Request node — make a GET request to your website URL. Under Options, set Never Error to true so the workflow continues even on a failed request.
  3. IF node — check if {{ $json.statusCode }} is not equal to 200.
  4. Telegram node (true branch) — send a message to your Chat ID: 🚨 Alert: yoursite.com returned status {{ $json.statusCode }} at {{ $now.toISO() }}

Add a second IF branch to check response time. In the HTTP Request node, the response includes timing data. You can alert if a request takes longer than your threshold — say, 2000ms.

Note: If your site goes down for an extended period, this workflow will send an alert every 5 minutes. Add a Function node with static data to track state and only alert on status changes, or use n8n's built-in deduplication with the Code node and workflow static data.

Workflow 2: Form Submission Notifications

Get instant Telegram notifications whenever someone fills out a form — whether it's a contact form, a lead gen form, or an application.

Nodes in this workflow:

  1. Webhook node — creates a URL endpoint your form can POST to. Set the HTTP method to POST.
  2. Set node — format the incoming data into a clean message. Map fields like name, email, and message.
  3. Telegram node — send the formatted message. Use Parse Mode: HTML or Markdown to structure the message:
📬 New Contact Form Submission

<b>Name:</b> {{ $json.name }}
<b>Email:</b> {{ $json.email }}
<b>Message:</b>
{{ $json.message }}

This is especially useful for freelancers and agencies who want to respond to leads within minutes. You see the notification on your phone, and you can reply to the lead immediately — without logging into a CRM or email dashboard.

You can extend this by adding an inline keyboard with buttons like "Reply" or "Mark as Spam" that trigger follow-up actions in your CRM or email tool.

Workflow 3: AI-Powered Telegram Chatbot

This is where things get exciting. You can build a Telegram bot that answers questions using an LLM — powered by OpenAI, Anthropic, or any AI provider n8n supports.

Nodes in this workflow:

  1. Telegram Trigger node — set to trigger on message updates. This catches every text message sent to your bot.
  2. AI Agent node — n8n's built-in AI agent. Configure it with:
    • AI model: Connect an OpenAI Chat Model or Anthropic Claude sub-node.
    • System prompt: Define your bot's personality and knowledge scope (e.g., "You are a helpful assistant for our product. Answer questions based on the following documentation...")
    • Memory: Add a Window Buffer Memory sub-node to maintain conversation context. Use the Telegram chat ID as the session key: {{ $json.message.chat.id }}
  3. Telegram node — send the AI response back. Set Chat ID to {{ $('Telegram Trigger').item.json.message.chat.id }} and the Text to the agent's output.

The memory sub-node is critical. Without it, the bot treats every message as a standalone question. With Window Buffer Memory keyed to the chat ID, the bot remembers the last N messages in each conversation, giving it context for follow-up questions.

You can also give the AI Agent tools — like a Google Sheets node to look up order statuses, or an HTTP Request node to query your internal API. This turns your Telegram bot into a genuine assistant that can take actions, not just answer questions.

Workflow 4: Daily Content Digest Bot

Build a bot that sends you a curated digest every morning — pulling from RSS feeds, Hacker News, Reddit, or any content source.

Nodes in this workflow:

  1. Schedule Trigger — set to 8:00 AM daily (or whatever time you prefer).
  2. RSS Feed Read node — pull the latest items from one or more feeds. You can use multiple RSS nodes in parallel for different sources.
  3. Merge node — combine results from multiple feeds into one list.
  4. Limit node — cap the output to the top 10 items.
  5. Summarize/Code node — use a Code node to format items into a numbered list with titles and links.
  6. Telegram node — send the formatted digest. Use HTML parse mode and Disable Link Preview to keep the message clean.

For a more advanced version, add an AI Summarize chain between the RSS node and the Telegram node. The LLM can summarize each article into one sentence, giving you a scannable digest instead of a wall of headlines.

Tips for Running Telegram Bots in Production

Once your workflows are built, a few best practices will keep them running smoothly:

  • Use error workflows: Set a global error workflow in your n8n settings that sends errors to a dedicated Telegram chat. This way, if any workflow fails, you know about it immediately.
  • Handle rate limits gracefully: Telegram allows about 30 messages per second to different chats, or 20 messages per minute to the same group. If you're sending bulk messages, add a Wait node between sends.
  • Secure your bot: If your bot should only respond to specific users, add an IF node at the start of your trigger workflow that checks {{ $json.message.from.id }} against an allowed list of user IDs.
  • Use inline keyboards for approvals: Instead of requiring users to type responses, add buttons with callback data. The Telegram Trigger node catches these as callback_query events, making it easy to build approval workflows.
  • Keep messages under 4096 characters: Telegram's maximum message length is 4096 characters. For longer content, split messages using a Code node or send the content as a document.

Running these bots on a managed n8n instance like n8nautomation.cloud means your Telegram Trigger webhooks have a stable, always-on URL without worrying about server uptime or SSL certificates. Your bots stay responsive around the clock, starting at $15/month.

Tip: You can run multiple Telegram bots from a single n8n instance — just create separate credentials for each bot token. This is useful if you want separate bots for different teams or purposes (e.g., one for DevOps alerts, another for customer support).

Telegram bots are one of the fastest ways to get real-time visibility into your automations. Combined with n8n's visual workflow builder and hundreds of integrations, you can go from zero to a working bot in under 30 minutes — no bot framework, no server provisioning, no code deployments. Just connect, configure, and let it run.

Ready to automate with n8n?

Get affordable managed n8n hosting with 24/7 support.