Templates / Add user authorization layer to your Telegram bot with admin alerts

Add user authorization layer to your Telegram bot with admin alerts

Ready for 3.0

by Ruslan Elishev ✓ · 1,126 views · created 2025-10-02 · Support Chatbot, AI Chatbot

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This workflow has 8 nodes and runs on Telegram events (message). Along the way it connects Telegram.

How it runs

Trigger: On Telegram events (message).

  1. BotGuard Authorization (Code): runs custom JavaScript code
  2. Check Authorization (If): checks a condition and branches into true / false
  3. Send Success (Telegram): uses Telegram
  4. Send Denied (Telegram): uses Telegram
  5. Check Admin Notify (If): checks a condition and branches into true / false
  6. Prepare Admin Notifications (Code): runs custom JavaScript code
  7. Notify Admin (Telegram): uses Telegram

Services it uses

Telegram

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (4)

From the author

🛡️ BotGuard - Telegram Bot Authorization Layer What This Workflow Does Ever noticed how most Telegram bot tutorials assume everyone can just... use your bot? No questions asked, no protection, nothing. That's fine for a simple "Hello World" bot, but the…

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.