Blog n8n Telegram Bot: How to Automate Any Workflow with Telegram (2026)
Editorial

n8n Telegram Bot: How to Automate Any Workflow with Telegram (2026)

Admin {{ $post->author->username }} 4 min read

What is n8n and Why Combine It with Telegram?

n8n is an open-source workflow automation platform — think Zapier or Make, but self-hostable, more powerful, and free for self-hosted use. It lets you build automated workflows by connecting nodes visually: a trigger starts the workflow, and a chain of action nodes processes and responds. Telegram is one of n8n's most popular integrations because it serves as both an excellent input interface (users send commands to trigger workflows) and notification channel (workflows send alerts to Telegram).

The combination creates a powerful pattern: your Telegram bot becomes the interface for any automation you can imagine, without building a custom web app or mobile application.

How to Connect n8n to Telegram

  1. Create a Telegram bot via @BotFather and save your API token
  2. Install n8n: npm install -g n8n && n8n start — or sign up for n8n Cloud
  3. Open the n8n editor (default: http://localhost:5678)
  4. Create a new workflow and add a Telegram Trigger node
  5. Configure the credential with your bot API token
  6. Add processing nodes and a Telegram action node to send replies
  7. Activate the workflow — your bot is live

For webhook-based operation (required for production), n8n needs a public HTTPS URL. Use ngrok during local development to expose your instance temporarily.

Best n8n + Telegram Automation Workflows

Notification Alerts

The most common use case: trigger a workflow on any external event — a new Stripe payment, a GitHub commit, a website going down, a Google Sheets row added — and send a formatted Telegram notification. Replace email alerts with Telegram for faster, more visible delivery.

Command-Driven Bot

Map bot commands to workflow branches. Send /price BTC → workflow calls CoinGecko API → replies with current price. Send /weather London → calls weather API → replies with forecast. Each command triggers a different branch in your n8n workflow.

AI-Powered Chatbot

n8n has native OpenAI and Anthropic integrations. Build a workflow where incoming Telegram messages are passed to GPT-4o or Claude, and the AI response is sent back to the user — a fully functional AI chatbot in Telegram, built entirely with visual nodes.

Website Monitoring

A cron trigger in n8n checks your website's uptime periodically. When an outage or slow response is detected, the workflow sends an immediate Telegram alert. You react before customers notice.

n8n vs Zapier vs Make for Telegram

  • n8n: Free self-hosted, unlimited workflow complexity, custom code nodes (JavaScript/Python), native Telegram trigger and action. Best for developers and technical users who want full control.
  • Make (formerly Integromat): 1,000 operations/month free, native Telegram support, powerful visual scenario builder. Good middle ground between simplicity and power.
  • Zapier: 100 tasks/month free, 6,000+ integrations, linear workflows only on free plan. Best for non-technical users who prioritise ease of use over flexibility.

For Telegram specifically, n8n's native trigger and action support — including inline keyboards, file sending, and group posting — is more complete than Zapier's webhook-based integration. n8n also allows unlimited workflow complexity with conditional branches, loops, and embedded code.

No-Code Telegram Bot with n8n: Step-by-Step

Building a bot that responds to /joke with a random joke — no code required:

  1. Add a Telegram Trigger node (listens for incoming messages)
  2. Add an IF node: condition is message text equals /joke
  3. On the true branch: add an HTTP Request node calling a joke API
  4. Add a Telegram action node sending the joke text back to the chat ID
  5. On the false branch: add a Telegram node replying "Send /joke for a random joke!"
  6. Activate the workflow

Hosting n8n on Replit for Free

Replit is a browser-based development environment with hosting — creating public HTTPS URLs suitable for Telegram webhooks. Create a Node.js Replit project, add n8n as a dependency, start it with the --tunnel flag for development, and your n8n instance is accessible at a public URL you can register with Telegram.

For production, upgrade to paid Replit or migrate to a VPS for persistent, always-on operation without sleep timeouts.

Frequently Asked Questions

Can I create a Telegram bot with n8n for free?

Yes. Self-hosted n8n is completely free with no usage limits. You need a server to host it — free options include Railway.app and Render.com for low-traffic bots. The Telegram Bot API itself has no fees.

How do I set up a Telegram webhook in n8n?

When you use the Telegram Trigger node with n8n Cloud or a public-URL self-hosted instance, n8n automatically registers the webhook with Telegram when you activate the workflow. No manual setWebhook call needed.

Explore the Developer Tools category for more automation and development bots in the directory.

Share this article

Share on X