Templates / Telegram bot for item multi select and saving to Postgres (Module "Checkbox")

Telegram bot for item multi select and saving to Postgres (Module "Checkbox")

Ready for 3.0

by Andrew ✓ · 708 views · created 2025-04-21 · 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 42 nodes and runs on Telegram events. Along the way it connects Telegram and Postgres.

How it runs

Trigger: On Telegram events.

  1. Variables TG (Edit Fields (Set)): sets or maps fields
  2. Initialization (Edit Fields (Set)): sets or maps fields
  3. Start? (If): checks a condition and branches into true / false
  4. Welcome Message (Telegram): uses Telegram
  5. Define Type (Switch): routes items into branches
  6. Upsert bot status on START (Postgres): uses Postgres
  7. Switch: routes items into branches
  8. New? (If): checks a condition and branches into true / false
  9. Answers (Switch): routes items into branches
  10. Get Order (Postgres): uses Postgres

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

Services it uses

TelegramPostgres

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

From the author

Who is this for? This template is for developers and automation specialists looking to create a Telegram bot that enables users to select items from a predefined list and save their choices to a Postgres database. What problem is this workflow solving? It…

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