Automation library · Alerts and monitoring

Telegram bot

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

21 stepsLarge: read it before trusting it with anything live
3Branches: places the flow splits
0Loops or waits
1Service it connects to

The flow

Starts it 1Logic 12Service 8

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

  1. 1Telegram TriggerTelegram triggerStarts it
  2. 2Temp to Initiate Static DataCodeLogic
  3. 3Command CheckIfLogic
  4. 4Send Typing actionTelegramService
  5. 5Switch (Command Routing)SwitchLogic
  6. 6Prepare IF ValueCodeLogic
  7. 7Set waitingForContent1CodeLogic
  8. 8Set waitingForContent2CodeLogic
  9. 9Set waitingForContent3CodeLogic
  10. 10Check StateSwitchLogic
  11. 11Command1 content requestTelegramService
  12. 12Command2 content requestTelegramService
  13. 13Command3 content requestTelegramService
  14. 14Command1 processingNo OpLogic
  15. 15Command2 processingNo OpLogic
  16. 16Command3 processingNo OpLogic
  17. 17No Command checkTelegramService
  18. 18Command1 resultTelegramService
  19. 19Command2 resultTelegramService
  20. 20Command3 resultTelegramService
  21. 21Clear StateCodeLogic

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.