# Extend n8n with Telegram: n8n workflow template

> Started by an incoming Telegram message, and works across Telegram. 21 steps, 3 branches: large, and worth reading before you trust it with anything live.

Source: https://millionrounds.com/workflow/extend-n8n-with-telegram (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [Alerts and monitoring](https://millionrounds.com/workflows?category=Alerts+and+monitoring#library)

# Extend n8n with Telegram

Started by an incoming Telegram message, and works across Telegram. 21 steps, 3 branches: large, and worth reading before you trust it with anything live.

Large

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fextend-n8n-with-telegram)

**21 steps** Large: read it before trusting it with anything live

**3** Branches: places the flow splits

**0** Loops or waits

**1** Service it connects to

## The flow

Starts it 1 Logic 9 Service 11

The steps in the order they run, from what starts it.

- 1 **Telegram Trigger** Telegram trigger *Starts it*
- 2 **Switch** Switch *Logic*
- 3 **Merge1** Merge *Logic*
- 4 **msg_pleasewait** Telegram *Service*
- 5 **Merge2** Merge *Logic*
- 6 **Merge** Merge *Logic*
- 7 **msg_greet** Telegram *Service*
- 8 **Filename** Set *Logic*
- 9 **msg_wrongcommand** Telegram *Service*
- 10 **City List** Function *Logic*
- 11 **Get weather data** Http Request *Service*
- 12 **Any errors API?** If *Logic*
- 13 **msg_errorAPI** Telegram *Service*
- 14 **Convert API response** Function *Logic*
- 15 **Spreadsheet File** Spreadsheet File *Service*
- 16 **Write csv** Write Binary File *Service*
- 17 **Run R script** Execute Command *Service*
- 18 **R successful?** If *Logic*
- 19 **Read Binary File** Read Binary File *Service*
- 20 **msg_errorR** Telegram *Service*
- 21 **msg_getweather** Telegram *Service*

## How it's built

- **Starts on:** An incoming Telegram message
- **Steps:** 21, with 3 branches
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** Telegram
- **Model:** None. This is plumbing, not judgement

## Questions

What does it need to run?

An n8n account, plus your own Telegram account. You connect your own accounts after importing it; none are included.

What starts it?

It starts on an incoming Telegram message.

Does it use AI?

No. Every step is fixed logic or a call to a service, so it does the same thing every time.

How long does it take to set up?

Take your time. At 21 steps it is large: read it before trusting it with anything live.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

**Before you run it**

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 21 steps before you point it at anything that matters.

## Run it in n8n

- **Create your n8n account** Free to start. n8n is where the workflow runs. [Create an n8n account ↗](https://millionrounds.com/n8n)
- **Download the workflow** Free with a Millionrounds account. [Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fextend-n8n-with-telegram)
- **Paste it into n8n** Open a new workflow in n8n and paste. Then connect your own accounts.

Stored with the author's traces removed: canvas notes, instance identifiers, saved credential names and any live document they had left behind.

## Connects to

Each opens the other workflows that use it.

[Telegram](https://millionrounds.com/workflows?service=Telegram#library)

## Workflows like it

Also alerts and monitoring, with the same services where possible, closest in size first.

- [**Automated SSL Certificate Monitoring and Renewal with Notion** 21 steps · Notion, Telegram](https://millionrounds.com/workflow/automated-ssl-certificate-monitoring-and-renewal-with-notion)
- [**Filter for positive Google reviews with Telegram** 21 steps · Google Sheets, Telegram](https://millionrounds.com/workflow/filter-for-positive-google-reviews-with-telegram)
- [**Generate clean plates and automate object removal** 21 steps · Google Drive, Notion](https://millionrounds.com/workflow/generate-clean-plates-and-automate-object-removal)
- [**Telegram bot** 21 steps · Telegram](https://millionrounds.com/workflow/telegram-bot)
- [**Automated n8n error monitoring alerts - Telegram, Slack & email** 21 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/automated-n8n-error-monitoring-alerts-telegram-slack-and-ema)
- [**Monitor brand mentions on X with Gemini and Telegram** 21 steps · calls a model · Airtable, Telegram](https://millionrounds.com/workflow/monitor-brand-mentions-on-x-with-gemini-and-telegram)
