๐Ÿ“ฑ Verify Telegram channel subscriptions with access control using Postgres

โšก 398 views ยท ๐Ÿ“ฑ Social Media & Email Marketing

Description

Who is this for?

This workflow is for Telegram bot developers or marketers who want to verify user subscriptions to specific Telegram channels and optionally reward them with downloadable files.

What problem is this workflow solving?

This workflow ensures users have subscribed to required Telegram channels before they are granted access to resources or rewards, such as Google Drive files. It automates the subscription verification process, saving time and reducing manual effort.

What this workflow does

Setup

  1. Add the bot to your Telegram channels as an admin โ€“ this is required for the bot to check subscription status.
  2. Add channel IDs via the bot โ€“ these are the channels users will need to subscribe to.
  3. Send the referral link to users you want to verify.
  4. Remove channels anytime from the subscription check list if needed.
  5. Create tables in Postgres:
    • Replace "n8n" in the provided SQL script with your DB schema name.
    • Run the script in your Postgres DB.
  6. Add credentials:
    • Telegram
    • Postgres

How to customize this workflow to your needs

๐Ÿ”— Nodes Used

Postgres, Telegram, Telegram Trigger, Google Drive, Summarize

๐Ÿ“ฅ Import

Download workflow.json and import into n8n: Workflow menu โ†’ Import from File

๐Ÿ“– Importing guide ยท ๐Ÿ”‘ Credential setup