← All N8N workflows
Messaging & emailCodeFilterHTTP RequestIfNo Op

Use Config Bot to setup your telegram details, like:

Configured with Filter, HTTP Request, Redis, Loop Over Items, and additional nodes. Review the connections and setup before adapting this template.

Workflow preview
RoutingNew User ?IfCodeFormatCodeTransformBot-FieldsEdit FieldsWeb / APICreate Topic (ChatTicket)HTTP RequestData storeSave Topic IDRedisData storeGet User Chat TopicRedisWeb / APIForward New MessageHTTP RequestRoutingIF No Topic CreatedIfWeb / APIReCreate Topic (ChatTicket)HTTP RequestData storeReSave Topic IDRedisData storeUpdate User DataRedisData storeSave User DataRedisRoutingSupport ForumIfRoutingFrom TicketIfWeb / APIForward Support ReplyTo UserHTTP RequestRoutingIF Topic CreatedIfWeb / APIForward New Message tothe recrated topicHTTP RequestRoutingNo Operation, donothingNo OpData storeCheck User in DatabaseRedisMessagingSend User TicketCreated NotificationTelegramTransformBot-ConfigEdit FieldsTriggerTelegram-BotTelegram TriggerRouting1stSwitchRoutingSplit In Batches1Loop Over ItemsWaitWait1WaitCodeFormat UsersCodeWeb / APIBroadcast Channel Postinto UsersHTTP RequestData storeSet Blocked MemberRedisRoutingIF Verified ChannelIfRoutingFilter Blocked UsersFilterData storeRetrieve all users inDBRedis

Node categories in this workflow

  • Routing
  • Code
  • Transform
  • Web / API
  • Data store
  • Messaging
  • Trigger
  • Wait

Icons describe general node roles, inferred from node types. Inspect the parameters for the configured action.

Drag to pan; use + and − to zoom. Reconstructed from the exported node positions; nothing runs here. Dashed lines represent non-main connections. Full node names and notes appear below.

How it works

The exported workflow contains the following configured nodes. Their connections are shown above; inspect the JSON for the complete logic, expressions, and external actions.

Workflow node names, types, and operations
NodeCategoryTypeOperation
New User ?RoutingIfSee node parameters
FormatCodeCodeSee node parameters
Bot-FieldsTransformEdit FieldsSee node parameters
Create Topic (Chat Ticket)Web / APIHTTP RequestSee node parameters
Save Topic IDData storeRedisset
Get User Chat TopicData storeRedisget
Forward New MessageWeb / APIHTTP RequestPOST
IF No Topic CreatedRoutingIfSee node parameters
ReCreate Topic (Chat Ticket)Web / APIHTTP RequestSee node parameters
ReSave Topic IDData storeRedisset
Update User DataData storeRedisset
Save User DataData storeRedisset
Support ForumRoutingIfSee node parameters
From TicketRoutingIfSee node parameters
Forward Support Reply To UserWeb / APIHTTP RequestPOST
IF Topic CreatedRoutingIfSee node parameters
Forward New Message to the recrated topicWeb / APIHTTP RequestPOST
No Operation, do nothingRoutingNo OpSee node parameters
Check User in DatabaseData storeRediskeys
Send User Ticket Created NotificationMessagingTelegramSee node parameters
Bot-ConfigTransformEdit FieldsSee node parameters
Telegram-BotTriggerTelegram TriggerSee node parameters
1stRoutingSwitchSee node parameters
Split In Batches1RoutingLoop Over ItemsSee node parameters
Wait1WaitWaitSee node parameters
Format UsersCodeCodeSee node parameters
Broadcast Channel Post into UsersWeb / APIHTTP RequestPOST
Set Blocked MemberData storeRedisset
IF Verified ChannelRoutingIfSee node parameters
Filter Blocked UsersRoutingFilterSee node parameters
Retrieve all users in DBData storeRediskeys

Setup

  1. Download the JSON and import it into an isolated n8n instance. Leave the workflow inactive.
  2. Connect your own credentials through n8n’s credential store. Replace REPLACE_WITH_* values with your resource identifiers.
  3. Inspect API destinations, Code nodes, database queries, file paths, and outbound actions.
  4. Run with synthetic data and harmless destinations. Enable triggers only after checking the actual outputs.

Requirements

An n8n instance with the listed node types and compatible versions. Service-connected workflows may require accounts, credentials, or paid APIs.

Credential types declared in the source

  • redis
  • telegramApi

Workflow notes

Use **Config Bot** to setup your telegram details, like:

Use Config Bot to setup your telegram details, like:

1- Telegram Group ID (Don't forget add bot as admin) 2- Telegram Channel ID (Don't forget add bot as admin) 3- Your telegram Bot Token. (Generate through @BotFather)

Setup data & filter & route to the correct Side.

0- None of them - Soon - Wait V2 1- Chat Type (Private) 2- Chat Type (Supergroup) 3- Chat Type (Channel)

Remember:

  • Do not make your support group public. Every message sent in the group on various topics will be forwarded to the user's ticket.
  • There is no need to promote your broadcasting channel; the main reason for the channel is to organize and broadcast messages.
  • You can host a Redis database without any coding/server management skills through Coolify.io.
  • In the next version, I will add the edit messages feature, where the forwarded messages will be updated with the new edited one.

Why use this method?

  • If you deal with Telegram P2P, anyone can delete messages from both sides. If you run a business, then one of your clients may delete all messages, causing you to lose the history. This solution prevents people from deleting messages; every message forwarded into the support group will not be possible to delete by the sender.
  • Team collaboration: Why share one account when you can convert the whole group into a ticketing system? With this project, you can invite all your coworkers to reply and provide support to your clients through Telegram.
  • Integrate with third-party services? Using N8N will pave the way for integrating your Telegram users' data into a CRM. In V2, we will enable the option to force new users to share their leads before receiving support.
Re Create New Topic

Re Create New Topic

Sometimes in support group may the team delete or close a ticket (topic) in case of that this steps will create topic again for the user, and store the new ticket id (topic/thread ID).

Check User in Database

Search Key

Support Side

Support Side

This Part is meant to forward replies that sent by support (members in the group)

User Side

User Side

This Part is meant to save user data on a RAM database which is fast, and in same time forward the message to support after creating a new ticket (Topic) dedciated for the user id in the support group.

Split In Batches1

Telegram Limitation 29/sec

Channel Side (Broadcasting)

Channel Side (Broadcasting)

This Part where the support of brand broadcasting message to all previous users who used this bot before.

Use Config Bot to setup your telegram details, like:

Use Config Bot to setup your telegram details, like:

Purpose and structure

This folder contains the Use Config Bot to setup your telegram details, like: workflow. Its executable nodes use code, filter, httpRequest, if, noOp, redis, set, splitInBatches, switch, telegram, telegramTrigger, wait. The table and connection map below are derived from the JSON, not an inferred guarantee of behavior.

Setup

Import inactive. Configure your own credentials and replace REPLACE_WITH_* values. Review external destinations and Code nodes before running.

Entry points

Telegram-Bot

Verification

Sanitized source candidate; not runtime-tested. This overview is generated from node metadata. Read the folder README for the connection map, credential types, and license.

Attribution

https://github.com/Zie619/n8n-workflows/blob/94007c1445d9258a7da116646b79473e7c7c3282/workflows/Telegram/0383_Telegram_Wait_Create_Webhook.json MIT; preserve source notices.

More in Messaging & email