Add user authorization layer to your Telegram bot with admin alerts
Ready for 3.0Ready 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).
- BotGuard Authorization (Code): runs custom JavaScript code
- Check Authorization (If): checks a condition and branches into true / false
- Send Success (Telegram): uses Telegram
- Send Denied (Telegram): uses Telegram
- Check Admin Notify (If): checks a condition and branches into true / false
- Prepare Admin Notifications (Code): runs custom JavaScript code
- Notify Admin (Telegram): uses Telegram
Services it uses
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)
- Code
n8n-nodes-base.code - If
n8n-nodes-base.if - Telegram
n8n-nodes-base.telegram - Telegram Trigger
n8n-nodes-base.telegramTrigger
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…