# Process Telegram image albums with Data Tables Cache: n8n workflow

> Started by an incoming Telegram message, and works across Telegram and n8n data table. 28 steps, 1 branch: large, and worth reading before you trust it with...

Source: https://millionrounds.com/workflow/process-telegram-image-albums-with-data-tables-cache (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)

# Process Telegram image albums with Data Tables Cache

Started by an incoming Telegram message, and works across Telegram and n8n data table. 28 steps, 1 branch: large, and worth reading before you trust it with anything live.

Large

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fprocess-telegram-image-albums-with-data-tables-cache)

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

**1** Branch: places the flow splits

**0** Loops or waits

**2** Services it connects to

## The flow

Starts it 3 Logic 12 Service 13

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

- 1 **Telegram Trigger** Telegram trigger *Starts it*
- 2 **Schedule Trigger** Schedule trigger *Starts it*
- 3 **When clicking ‘Execute workflow’** Manual trigger *Starts it*
- 4 **Is media group with images?** If *Logic*
- 5 **If any new records** Data Table *Service*
- 6 **Upsert row(s)** Data Table *Service*
- 7 **Filter1** Filter *Logic*
- 8 **Process other messages as usual** No Op *Logic*
- 9 **Get new requests** Data Table *Service*
- 10 **Send initial notification** Telegram *Service*
- 11 **NOOP** No Op *Logic*
- 12 **Merge2** Merge *Logic*
- 13 **Merge** Merge *Logic*
- 14 **Latest message in media_group** Summarize *Service*
- 15 **status:done** Data Table *Service*
- 16 **status:processing** Data Table *Service*
- 17 **Filter** Filter *Logic*
- 18 **Sort** Sort *Logic*
- 19 **parse TG messages** Set *Logic*
- 20 **Get a file** Telegram *Service*
- 21 **prepare user messages** Set *Logic*
- 22 **Summarize** Summarize *Service*
- 23 **Send processing message** Telegram *Service*
- 24 **Call NanoBanana via OpenRouter** Http Request *Service*
- 25 **Merge1** Merge *Logic*
- 26 **Extract Base64** Set *Logic*
- 27 **Send result message** Telegram *Service*
- 28 **Convert to File** Convert To File *Service*

## How it's built

- **Starts on:** An incoming Telegram message
- **Steps:** 28, with 1 branch
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** Telegram, n8n data table
- **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 28 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 28 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%2Fprocess-telegram-image-albums-with-data-tables-cache)
- **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)[n8n data table](https://millionrounds.com/workflows?service=n8n+data+table#library)

## Workflows like it

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

- [**Sync Attio CRM with Jotform and Slack** 28 steps · n8n data table](https://millionrounds.com/workflow/sync-attio-crm-with-jotform-and-slack)
- [**Monitor Facebook post safety with Apify and Gemini** 28 steps · calls a model · Apify, Telegram](https://millionrounds.com/workflow/monitor-facebook-post-safety-with-apify-and-gemini)
- [**AI chatbot call center: Telegram call in with Postgres** 29 steps · Postgres, Redis](https://millionrounds.com/workflow/ai-chatbot-call-center-telegram-call-in-with-postgres)
- [**AI chatbot call center: demo call back with Postgres and Redis** 29 steps · Postgres, Redis](https://millionrounds.com/workflow/ai-chatbot-call-center-demo-call-back-with-postgres-and-redi)
- [**Assistant for Telegram chat with OpenAI and Airtable** 29 steps · Airtable, Telegram](https://millionrounds.com/workflow/assistant-for-telegram-chat-with-openai-and-airtable)
- [**Create and manage ERC-20 tokens with Telegram and 1Shot API** 29 steps · Telegram, n8n data table](https://millionrounds.com/workflow/create-and-manage-erc-20-tokens-with-telegram-and-1shot-api)
