Send safely formatted HTML messages with the Telegram bot API
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-12-01.
What this workflow does
This workflow has 4 nodes and runs manually, when you click “Execute workflow”. Along the way it connects Telegram.
How it runs
Trigger: Manually, when you click “Execute workflow”.
- Set message settings (Edit Fields (Set)): sets 7 fields: telegramChatId, defaultTitle, linkText…
- Build safe HTML message (Code): runs custom JavaScript code
- Send HTML message to Telegram (Telegram): uses Telegram
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 (4)
- Manual Trigger
n8n-nodes-base.manualTrigger - Edit Fields (Set)
n8n-nodes-base.set - Code
n8n-nodes-base.code - Telegram
n8n-nodes-base.telegram
From the author
Quick overview This workflow runs on demand to build a Telegram message in safe HTML by escaping dynamic values and enforcing Telegram’s 4096-character limit, then sends the formatted result to a specified chat using the Telegram bot API. How it works 1. Runs…