Templates / Create a dynamic Telegram bot menu system with multi-level navigation

Create a dynamic Telegram bot menu system with multi-level navigation

Needs changes

by Ruslan Elishev ✓ · 3,194 views · created 2025-09-22 · Support Chatbot, AI Chatbot

Needs changes. This template uses 1 thing(s) that n8n 3.0 removes: Function (legacy). 1 breaking item(s) found. Static check, last run 2026-10-19.

What this workflow does

This workflow has 20 nodes and runs on Telegram events (message, callback query). Along the way it connects Telegram.

How it runs

Trigger: On Telegram events (message, callback query).

  1. Load Menu Config (Function): runs custom JavaScript (legacy Function node)
  2. Extract Command (Function): runs custom JavaScript (legacy Function node)
  3. Merge: merges the data from its input branches
  4. Process Command (Function): runs custom JavaScript (legacy Function node)
  5. Needs Action? (If): checks a condition and branches into true / false
  6. Action Router (Switch): routes items into branches
  7. Build Response (Function): runs custom JavaScript (legacy Function node)
  8. Rating Handler (Function): runs custom JavaScript (legacy Function node)
  9. Language Handler (Function): runs custom JavaScript (legacy Function node)
  10. Analytics Handler (Function): runs custom JavaScript (legacy Function node)

…plus 9 more steps. See the full node list below.

Services it uses

Telegram

Before you upgrade to n8n 3.0

1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:

  • Function (legacy) in Load Menu Config2, Extract Command4, Process Command2…: replace with Code node, mode 'Run Once for All Items'.

Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).

Removed in 3.0Replace with
Function (legacy)
Load Menu Config2, Extract Command4, Process Command2, Rating Handler2, Language Handler2, Analytics Handler2, Statistics Handler3, Feedback Handler3, Settings Handler3, Default Handler2, Build Response2, Prepare Telegram2
Code node, mode 'Run Once for All Items'

Nodes used (7)

From the author

🤖 Telegram Bot with Dynamic Multi-Level Menu System What This Workflow Does Ever wanted to build a Telegram bot with professional-looking menus that actually work? This n8n workflow creates an interactive bot with dynamic inline keyboards, multi-level…

Excerpt from Ruslan Elishev's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.