Tutorial

Telegram in Nodlyn: Sending Messages, Alerts, and Dynamic Notifications

Telegram is one of the fastest and most reliable messaging platforms for automation. Nodlyn integrates directly with the Telegram Bot API, allowing you to send alerts, notifications, formatted messages, and dynamic content to any chat or channel.

The connector definition states that it can "send messages and notifications via Telegram Bot API." This makes it ideal for monitoring, reporting, and real‑time workflow feedback.

Step 1: Configure Your Telegram Bot

Start by dragging a Send Telegram Message node onto the canvas. You will need two required fields:

  • botToken — your bot's API token (from @BotFather)
  • chatId — the target chat or channel ID

Both fields support dynamic placeholders using {{field}} or input data paths.

Example:

chatId: {{user.chatId}} message: Hello {{user.name}}, your order is ready!

Step 2: Write Your Message

The message field accepts plain text, HTML, or MarkdownV2 depending on your chosen parse mode.

You can choose between:

  • HTML — bold, italic, links, code blocks
  • MarkdownV2 — advanced formatting
  • None — raw text

Example HTML message:

<b>Alert:</b> Temperature exceeded threshold!

Step 3: Use Dynamic Placeholders

The executor supports template placeholders inside bot token, chat ID, and message fields. Any {{path.to.value}} is resolved from the node input.

For example, if your input contains:

{ "sensor": { "temp": 31.7 } }

You can write:

message: Current temperature is {{sensor.temp}}°C

This makes Telegram ideal for real‑time sensor alerts, workflow summaries, or status updates.

Step 4: Execution and Error Handling

When the node runs, Nodlyn sends a POST request to:

https://api.telegram.org/bot<token>/sendMessage

The executor handles:

  • timeouts (default: 10 seconds)
  • API errors with detailed messages
  • dry‑run mode (no message sent)

On success, the Telegram API response is returned as JSON for downstream nodes.

Example Workflow

Here's a simple automation you can build in minutes:

  1. Receive a webhook from your server.
  2. Extract user information and event details.
  3. Send a Telegram message using dynamic placeholders.
  4. Log the Telegram API response.

This is perfect for monitoring deployments, notifying customers, or sending internal alerts.

Advanced Use Cases

Telegram becomes extremely powerful when combined with other connectors:

  • Send alerts when a Stripe payment succeeds
  • Notify admins when a Serial Bus sensor changes
  • Send deployment logs from Command Line executions
  • Forward BLE sensor readings to a Telegram group

Because Telegram supports cloud execution, your workflows can run anywhere — from local machines to remote servers or containerized environments.

What's Next?

Try combining Telegram with HTTP triggers, Stripe webhooks, or scheduled workflows. Build notification systems, monitoring dashboards, or customer messaging flows.

Telegram gives you instant communication — and Nodlyn makes it effortless.

Nodlyn Assistant
Ask me anything about Nodlyn
Hi! 👋 I'm the Nodlyn assistant. Ask me about the product, workflow components, connectors, agent runtime, agent capabilities, deployment, and more. If I don't know an answer, I'll point you to our contact form.
Nodlyn Assistant
Ask me anything about Nodlyn
Hi! 👋 I'm the Nodlyn assistant. Ask me about the product, workflow components, connectors, agent runtime, agent capabilities, deployment, and more. If I don't know an answer, I'll point you to our contact form.