Developer & DevOps

Execute system commands triggered by Telegram messages

7 nodes 271 134 Automatic trigger
Download

Workflow Description

Automation that listens to incoming Telegram messages and executes system commands based on message content, returning execution results directly to the user via Telegram responses.

How it works

  1. 1.Listen for incoming messages from Telegram channels or groups in real-time
  2. 2.Evaluate message content using conditional logic to identify command types
  3. 3.Execute system-level commands on the server using command-line interpreter
  4. 4.Send execution results or error messages back to Telegram sender

Use cases

  • Remote server management and administration through Telegram commands
  • Trigger scheduled backup scripts or deployment processes on-demand
  • Receive system alerts and server health status updates via Telegram notifications

Requirements

  • Active Telegram account with access to a channel or group for communication
  • Server or machine capable of executing system commands via shell interface
  • Appropriate system permissions to run requested commands on the target machine

Service Value

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

Apps Used

Telegram

Details

Trigger Automatic trigger
Nodes 7
Apps 1
Views 271
Downloads 134

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 (7)

HTTP Request

HTTP Request

#1

Telegram

Set

#2

Telegram1

Set

#3

Execute Command

Execute Command

#4

Telegram Trigger

Set

#5

Saludos-IF

If

#6

S-Telegram2

Set

#7