Templates / Automate Telegram channel posts using Postgres (Module "Cross-Posting")

Automate Telegram channel posts using Postgres (Module "Cross-Posting")

Ready for 3.0

by Andrew ✓ · 759 views · created 2025-04-19 · Social Media

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 43 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. Is Admin? (If): checks a condition and branches into true / false
  4. Define Type (Switch): routes items into branches
  5. Get Bot Status (Postgres): uses Postgres
  6. Buttons (Switch): routes items into branches
  7. Define flow (Switch): routes items into branches
  8. Upsert bot status on START (Postgres): uses Postgres
  9. Request Post Image Text (Telegram): uses Telegram
  10. Request Post Text (Telegram): uses Telegram

…plus 32 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 (7)

From the author

Who is this for? This template is ideal for users managing Telegram channels who want to automate the process of posting messages, including text and images, directly from an bot. What problem is this workflow solving? Manually posting content to multiple…

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.