Skip to main content

Telegram giveaways among channel subscribers (Module "Giveaway")

Workflow preview

Workflow preview
100%
Telegram giveaways among channel subscribers (Module "Giveaway") preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

Who is this for? This workflow is ideal for businesses or individuals who want to run Telegram based giveaways that require users to subscribe to certain channels in order to participate. What prob...

Best for

  • Social Media automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.stickynote, n8n-nodes-base.set, n8n-nodes-base.telegram, n8n-nodes-base.postgres, n8n-nodes-base.if, n8n-nodes-base.switch, n8n-nodes-base.sort, n8n-nodes-base.aggregate

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Andrew.

Original n8n.io source

1.1 Workflow description

Title
Telegram giveaways among channel subscribers (Module "Giveaway")
Workflow name
Telegram giveaways among channel subscribers (Module "Giveaway")

Who is this for?

This workflow is ideal for businesses or individuals who want to run Telegram-based giveaways that require users to subscribe to certain channels in order to participate.

What problem is this workflow solving?

Running a fair and trackable giveaway on Telegram can be difficult without a system that verifies subscriptions and manages participants. This workflow simplifies that process, ensuring only eligible users are included and enabling a smooth drawing process.

What this workflow does

  • The giveaway organizer specifies a list of Telegram channels for participants to must subscribe to.
  • The organizer shares a bot link with users.
  • Users start the bot, confirming their participation in the giveaway.
  • The bot tracks eligible participants.
  • The administrator complete the giveaway and select winners.

Setup

  1. Create tables in your Postgres database

    • Open the provided SQL script.
    • Replace "n8n" with your schema name.
    • Execute the script in your Postgres DB.
  2. Add credentials in n8n

    • Telegram credentials (Bot token, etc.)
    • Postgres database credentials

How to customize this workflow to your needs

  • Modify the SQL script to match your database schema if needed.
  • Customize the Telegram bot messages and logic using the n8n Telegram nodes.
  • Add additional nodes if you want to notify winners or log data in other services.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Sticky Note14

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 2 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 3 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 4 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 5 - Initialization

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 6 - Welcome message Referal

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1.2

Block 7 - Welcome message Manager

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1.2

Block 8 - Upsert bot status on START

Type / Role
n8n-nodes-base.postgres - postgres
Config choices
Version 2.5

Block 9 - Add participant in Giveaway

Type / Role
n8n-nodes-base.postgres - postgres
Config choices
Version 2.5

Block 10 - Get Bot Status

Type / Role
n8n-nodes-base.postgres - postgres
Config choices
Version 2.5

Block 11 - Start?

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 12 - Button?

Type / Role
n8n-nodes-base.if - if
Config choices
Version 1

Block 13 - Referal?

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 14 - Define flow

Type / Role
n8n-nodes-base.switch - switch
Config choices
Version 3.2

Block 15 - Commands

Type / Role
n8n-nodes-base.switch - switch
Config choices
Version 3.2

Block 16 - List Channels

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1.2

Block 17 - Add channel

Type / Role
n8n-nodes-base.postgres - postgres
Config choices
Version 2.5

Block 18 - Buttons

Type / Role
n8n-nodes-base.switch - switch
Config choices
Version 3.2

Block 19 - Create Giveaway

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1.2

Block 20 - Request New Channel

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1.2

Block 21 - Channel Exists

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1.2

Block 22 - Define Step Giveaway

Type / Role
n8n-nodes-base.switch - switch
Config choices
Version 3.2

Block 23 - Get Participants

Type / Role
n8n-nodes-base.postgres - postgres
Config choices
Version 2.5

Block 24 - Random Participants

Type / Role
n8n-nodes-base.sort - sort
Config choices
Version 1

Showing the first 24 of 44 workflow blocks. Download the JSON for the full node graph.

3. Summary Table

Workflow Telegram giveaways among channel subscribers (Module "Giveaway")
Complexity advanced
Nodes 44
Categories Social Media
Author Andrew
Published 19 Apr 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/3611/3611.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Telegram giveaways among channel subscribers (Module "Giveaway") do?

Who is this for? This workflow is ideal for businesses or individuals who want to run Telegram based giveaways that require users to subscribe to certain channels in order to participate. What prob...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Social Media use case.