<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Alireza zolfaghar</title>
    <description>The latest articles on DEV Community by Alireza zolfaghar (@alireza_zolfaghar_fbe1b41).</description>
    <link>https://dev.to/alireza_zolfaghar_fbe1b41</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F2407463%2Fbfd361c7-20bf-4a5e-9889-63f92cc4398a.jpg</url>
      <title>DEV Community: Alireza zolfaghar</title>
      <link>https://dev.to/alireza_zolfaghar_fbe1b41</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/alireza_zolfaghar_fbe1b41"/>
    <language>en</language>
    <item>
      <title>What if running Linux commands were as easy as pressing a button in Telegram?</title>
      <dc:creator>Alireza zolfaghar</dc:creator>
      <pubDate>Mon, 14 Sep 2026 08:30:20 +0000</pubDate>
      <link>https://dev.to/alireza_zolfaghar_fbe1b41/what-if-running-linux-commands-were-as-easy-as-pressing-a-button-in-telegram-42jd</link>
      <guid>https://dev.to/alireza_zolfaghar_fbe1b41/what-if-running-linux-commands-were-as-easy-as-pressing-a-button-in-telegram-42jd</guid>
      <description>&lt;p&gt;As a computer enthusiast, I’m constantly dealing with a large number of Linux servers, which means I’m constantly connecting to them over SSH and running different commands in the terminal.&lt;/p&gt;

&lt;p&gt;A lot of these servers are work-related, and I also have a few personal servers.&lt;/p&gt;

&lt;p&gt;This is the story of one of the challenges I faced on my personal servers, which eventually made me roll up my sleeves and build a program called &lt;strong&gt;&lt;a href="https://telecommander.ir/" rel="noopener noreferrer"&gt;Telegram Commander&lt;/a&gt;&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://telecommander.ir/" rel="noopener noreferrer"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fkmlvd4spx4cdv2w5lsmm.png" alt="Telegram Commander" width="800" height="400"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  😅 Maybe this has happened to you too
&lt;/h2&gt;

&lt;p&gt;One evening, after a long day of work, I was lying on the couch in front of the TV, ready to watch the latest episode of our favorite series with my wife.&lt;/p&gt;

&lt;p&gt;Then I realized the TV couldn’t connect to my home server, so we couldn’t watch the episode that had already been automatically downloaded in amazing quality.&lt;/p&gt;

&lt;p&gt;I really didn’t feel like getting up, sitting at my desk, connecting to the server, and troubleshooting the problem.&lt;/p&gt;

&lt;p&gt;So I SSH’d into my home server using my phone and, with quite a bit of struggle, fixed the issue.&lt;/p&gt;

&lt;p&gt;But as you probably know, running terminal commands on a phone comes with its own challenges.&lt;/p&gt;

&lt;p&gt;That’s when I thought:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;It would be great if I could handle these repetitive tasks through a Telegram bot, right inside Telegram, just by pressing a few buttons.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;And this story kept happening again and again in different situations:&lt;/p&gt;

&lt;p&gt;_&lt;/p&gt;

&lt;blockquote&gt;
&lt;ul&gt;
&lt;li&gt;When you’re in the car and realize your family messaging service has stopped working.&lt;/li&gt;
&lt;li&gt;When you’re lying in bed and realize you need to restart your home internet connection.
And so on...
_&lt;/li&gt;
&lt;/ul&gt;
&lt;/blockquote&gt;

&lt;p&gt;What’s interesting is that many of these problems usually had a very specific solution, and I already knew exactly which command I needed to run.&lt;/p&gt;

&lt;p&gt;So I decided to build a solution for it using my favorite programming language, &lt;strong&gt;Golang&lt;/strong&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  🤖 What was the program supposed to do?
&lt;/h2&gt;

&lt;p&gt;The idea was to build a Telegram bot with these requirements:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Easily define buttons and tell each button which command it should execute.&lt;/li&gt;
&lt;li&gt;Group buttons into collections.&lt;/li&gt;
&lt;li&gt;Add icons to buttons when needed.&lt;/li&gt;
&lt;li&gt;After each command is executed, report its output and whether it succeeded or failed.&lt;/li&gt;
&lt;li&gt;Be secure and only allow authorized users to interact with the bot.&lt;/li&gt;
&lt;li&gt;Telegram is blocked in Iran, so it should support connecting to Telegram through a proxy.&lt;/li&gt;
&lt;li&gt;Be simple to install and run on Linux servers.&lt;/li&gt;
&lt;li&gt;Manage everything through a simple configuration file.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I got to work, and the result was &lt;strong&gt;Telegram Commander&lt;/strong&gt; — a Telegram bot builder that turns Linux commands into Telegram bot buttons using a configuration file.&lt;/p&gt;

&lt;p&gt;It’s &lt;strong&gt;open source&lt;/strong&gt; and &lt;strong&gt;completely free&lt;/strong&gt;, and you can inspect everything in its GitHub repository so you can see exactly how it works.&lt;/p&gt;

&lt;p&gt;🌐 &lt;strong&gt;Website:&lt;/strong&gt;&lt;br&gt;
&lt;a href="https://telecommander.ir/" rel="noopener noreferrer"&gt;https://telecommander.ir/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;📦 &lt;strong&gt;Source code:&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
&lt;a href="https://github.com/azolfaghrj/telegram-commander" rel="noopener noreferrer"&gt;https://github.com/azolfaghrj/telegram-commander&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The website contains all the documentation and tutorials you need, available in &lt;strong&gt;7 languages&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;So, what are you waiting for?&lt;/p&gt;

&lt;h2&gt;
  
  
  🚀 Easy Setup and Execution
&lt;/h2&gt;

&lt;p&gt;Overall, getting started only takes a few simple steps:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Download the latest release from GitHub.&lt;/li&gt;
&lt;li&gt;Choose the executable that matches your server’s CPU architecture.&lt;/li&gt;
&lt;li&gt;Copy the sample configuration file and enter your username and bot token.&lt;/li&gt;
&lt;li&gt;Run the program and send a message to the bot on Telegram.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;That’s it.&lt;/p&gt;

&lt;p&gt;And you’ll end up with something like this:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fsdzulxe420mgt8nw14bm.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fsdzulxe420mgt8nw14bm.jpeg" alt="bot screen shot" width="800" height="1067"&gt;&lt;/a&gt;&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F4mr4bw1eepshvyqmqvzn.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F4mr4bw1eepshvyqmqvzn.jpeg" alt="telegramcommander screenshot" width="800" height="1067"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>linux</category>
      <category>telegram</category>
      <category>go</category>
      <category>opensource</category>
    </item>
  </channel>
</rss>
