# Automated Telegram UserBot session monitoring & recovery: n8n workflow

> Started by someone opening a chat with it, and works across Telegram. 13 steps: a working afternoon to understand properly.

Source: https://millionrounds.com/workflow/automated-telegram-userbot-session-monitoring-and-recovery (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)

# Automated Telegram UserBot session monitoring & recovery

Started by someone opening a chat with it, and works across Telegram. 13 steps: a working afternoon to understand properly.

Medium

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fautomated-telegram-userbot-session-monitoring-and-recovery)

**13 steps** Medium: a working afternoon

**0** Branches: places the flow splits

**0** Loops or waits

**1** Service it connects to

## The flow

Starts it 2 Logic 5 Service 6

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

- 1 **When chat message received** Chat trigger *Starts it*
- 2 **Schedule Trigger** Schedule trigger *Starts it*
- 3 **Manual control** Tele Pilot *Service*
- 4 **Get Session Status** Set *Logic*
- 5 **Automatic control** Tele Pilot *Service*
- 6 **Pass on Closed Status** Filter *Logic*
- 7 **Send Closed Status message** Telegram *Service*
- 8 **Stop Session** Set *Logic*
- 9 **Stop auth** Tele Pilot *Service*
- 10 **Start Session** Set *Logic*
- 11 **Start auth** Tele Pilot *Service*
- 12 **Check Session Connection** Filter *Logic*
- 13 **Send Session Connection message** Telegram *Service*

## How it's built

- **Starts on:** Someone opening a chat with it
- **Steps:** 13
- **Size:** Medium: a working afternoon
- **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 someone opening a chat with it.

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?

Plan an afternoon. 13 steps is enough that you should read each one before running it.

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 13 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%2Fautomated-telegram-userbot-session-monitoring-and-recovery)
- **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.

- [**Auto-post Medium.com articles to LinkedIn with Telegram** 13 steps · Airtable, LinkedIn](https://millionrounds.com/workflow/auto-post-medium-com-articles-to-linkedin-with-telegram)
- [**Automate Restaurant Reviews and Marketing System with Telegram** 13 steps · Google Sheets, Telegram](https://millionrounds.com/workflow/automate-restaurant-reviews-and-marketing-system-with-telegr)
- [**Facebook ads auto campaign activation with Telegram** 13 steps · Telegram](https://millionrounds.com/workflow/facebook-ads-auto-campaign-activation-with-telegram)
- [**Instagram carousel posts from Google Drive with Cloudinary** 13 steps · Google Drive, Telegram](https://millionrounds.com/workflow/instagram-carousel-posts-from-google-drive-with-cloudinary)
- [**Monitor IRR exchange rates from Bonbast.com with Telegram** 13 steps · Telegram](https://millionrounds.com/workflow/monitor-irr-exchange-rates-from-bonbast-com-with-telegram)
- [**Monitor multiple GitHub repos with Slack and Telegram** 13 steps · Slack, Telegram](https://millionrounds.com/workflow/monitor-multiple-github-repos-with-slack-and-telegram)
