Developer & DevOps

Automate Telegram Messages with Batch Processing and Redis Storage

36 nodes 192 114 Automatic trigger
Download

Workflow Description

Advanced automation that receives Telegram messages, organizes them into processing batches, stores data in Redis, and executes conditional logic to route messages and trigger actions automatically based on message content and predefined rules.

How it works

  1. 1.Receive incoming messages from Telegram trigger
  2. 2.Split messages into batches using Split In Batches node
  3. 3.Evaluate conditional statements and route batches to appropriate paths
  4. 4.Execute code operations and HTTP requests based on logic
  5. 5.Store results and state information in Redis
  6. 6.Send automated responses back to Telegram users

Use cases

  • Customer support bots that classify inquiries and route them automatically
  • Batch notification systems that handle high-volume messaging efficiently
  • Command processing pipelines with caching and validation checks

Requirements

  • Active Telegram Bot account with valid API token
  • Connected Redis server or access credentials
  • Basic understanding of conditional logic and code execution

Service Value

Ready-made workflow template for automation delivery and service execution.

Apps Used

Redis Telegram Split In Batches

Details

Trigger Automatic trigger
Nodes 36
Apps 3
Views 192
Downloads 114

How to Use

  1. 1.Click "Download Template"
  2. 2.Open your n8n dashboard
  3. 3.Go to Workflows > Import from File
  4. 4.Select downloaded file and configure credentials

Nodes Used (36)

/

Sticky Note

Sticky Note

#1

New User ?

If

#2

Format

Code

#3

Bot-Fields

Set

#4

Create Topic (Chat Ticket)

HTTP Request

#5

Save Topic ID

Redis

#6

Get User Chat Topic

Redis

#7

Forward New Message

HTTP Request

#8

IF No Topic Created

If

#9

ReCreate Topic (Chat Ticket)

HTTP Request

#10

ReSave Topic ID

Redis

#11

Sticky Note1

Sticky Note

#12

Update User Data

Redis

#13

Save User Data

Redis

#14

Support Forum

If

#15

From Ticket

If

#16

Forward Support Reply To User

HTTP Request

#17

IF Topic Created

If

#18

Forward New Message to the recrated topic

HTTP Request

#19

No Operation, do nothing

No Op

#20

Check User in Database

Redis

#21

Sticky Note2

Sticky Note

#22

Send User Ticket Created Notification

Set

#23

Sticky Note3

Sticky Note

#24

Bot-Config

Set

#25

Telegram-Bot

Set

#26

1st

Switch

#27

Split In Batches1

Split In Batches

#28

Wait1

Wait

#29

Format Users

Code

#30

Broadcast Channel Post into Users

HTTP Request

#31

Set Blocked Member

Redis

#32

IF Verified Channel

If

#33

Filter Blocked Users

Filter

#34

Sticky Note4

Sticky Note

#35

Retrieve all users in DB

Redis

#36