Generate text & image responses in Telegram channels with GPT-4 and TGPT
Ready for 3.0Ready 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 14 nodes and runs on a schedule (every 10 seconds). Along the way it connects Telegram.
How it runs
Trigger: On a schedule (every 10 seconds).
- Config (Edit Fields (Set)): sets 3 fields: bot_token, channel_id, last_offset
- Get Updates (HTTP Request): calls an HTTP API
- Process Offset (Code): runs custom JavaScript code
- Split (Split Out): splits a list into separate items
- Clear Update List (HTTP Request): calls an HTTP API
- Filter (If): checks a condition and branches into true / false
- Switch: routes items into 2 branches
- Execute - Text (Execute Command): runs a shell command on the n8n host
- Execute - Image (Execute Command): runs a shell command on the n8n host
- Clean (Code): runs custom JavaScript code
…plus 3 more steps. See the full node list below.
Services it uses
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 (10)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Edit Fields (Set)
n8n-nodes-base.set - HTTP Request
n8n-nodes-base.httpRequest - Code
n8n-nodes-base.code - Split Out
n8n-nodes-base.splitOut - If
n8n-nodes-base.if - Switch
n8n-nodes-base.switch - Execute Command
n8n-nodes-base.executeCommand - Telegram
n8n-nodes-base.telegram - Read/Write Files from Disk
n8n-nodes-base.readWriteFile
From the author
Telegram AI Channel Bot - Text & Image Response Generator with TGPT Overview This n8n workflow creates an automated Telegram channel bot that responds to messages with AI-generated text or images using TGPT. The bot monitors a specific Telegram channel and…