Templates / Protect Telegram groups with math CAPTCHA verification and Google Sheets

Protect Telegram groups with math CAPTCHA verification and Google Sheets

Ready for 3.0

by Vadym Nahornyi ✓ · 51 views · created 2025-08-29 · Support 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 15 nodes and runs on Telegram events. Along the way it connects Telegram and Google Sheets.

How it runs

Trigger: On Telegram events.

  1. ⚙️ Bot Configuration (Edit Fields (Set)): sets or maps fields
  2. 🔍 Check New Member (If): checks a condition and branches into true / false
  3. 🎲 Generate CAPTCHA Question (Code): runs custom JavaScript code
  4. 📋 Find Pending CAPTCHA (Google Sheets): uses Google Sheets
  5. ❓ Send CAPTCHA Question (Telegram): uses Telegram
  6. 🗑️ Delete CAPTCHA Question (Success) (Telegram): uses Telegram
  7. 🗑️ Delete Join Message (Telegram): uses Telegram
  8. ✅ Verify Answer (If): checks a condition and branches into true / false
  9. 💾 Store User Answer (Google Sheets): uses Google Sheets
  10. 🎉 Welcome New Member (Telegram): uses Telegram

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

Services it uses

TelegramGoogle Sheets

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 (7)

From the author

Why this template rocks 🚀 Lightning-fast setup - Deploy in under 5 minutes 💡 Zero AI costs - Uses simple math instead of expensive LLM calls 🛡️ 99% spam blocking - Mathematical CAPTCHAs stop bots instantly ⚡ Ultra-efficient - Runs on minimal resources,…

Excerpt from Vadym Nahornyi'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.