<?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>Forem: Abduqodir</title>
    <description>The latest articles on Forem by Abduqodir (@encoderuz).</description>
    <link>https://forem.com/encoderuz</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.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F2115556%2Fb77963ed-319c-4bbd-9720-ce85c4655e06.jpeg</url>
      <title>Forem: Abduqodir</title>
      <link>https://forem.com/encoderuz</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/encoderuz"/>
    <language>en</language>
    <item>
      <title>Telemon – Send Telegram Alerts from Any Rust Project</title>
      <dc:creator>Abduqodir</dc:creator>
      <pubDate>Tue, 01 Apr 2025 10:13:15 +0000</pubDate>
      <link>https://forem.com/encoderuz/telemon-send-telegram-alerts-from-any-rust-project-do1</link>
      <guid>https://forem.com/encoderuz/telemon-send-telegram-alerts-from-any-rust-project-do1</guid>
      <description>&lt;p&gt;&lt;strong&gt;Hey Rustaceans! 🦀&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;I’ve recently started learning Rust, and to solidify my understanding, I wanted to build something small but useful in the real world. That’s how I created &lt;a href="https://crates.io/crates/telemon" rel="noopener noreferrer"&gt;telemon&lt;/a&gt; – a lightweight message dispatcher that lets you send alerts and logs directly to Telegram from any Rust application.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;💡 What Is telemon?&lt;/strong&gt;&lt;br&gt;
telemon is a tiny but powerful crate that allows you to:&lt;/p&gt;

&lt;p&gt;✅ Send messages to Telegram topics&lt;br&gt;
✅ Notify Telegram groups of logs/errors&lt;br&gt;
✅ Trigger real-time alerts from CLI tools, background jobs, servers, or monitoring scripts&lt;/p&gt;

&lt;p&gt;With a single line:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight rust"&gt;&lt;code&gt;&lt;span class="k"&gt;use&lt;/span&gt; &lt;span class="nn"&gt;telemon&lt;/span&gt;&lt;span class="p"&gt;::&lt;/span&gt;&lt;span class="n"&gt;Telemon&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="nn"&gt;Telemon&lt;/span&gt;&lt;span class="p"&gt;::&lt;/span&gt;&lt;span class="nf"&gt;send&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;"🔥 Server is down!"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="nf"&gt;.to&lt;/span&gt;&lt;span class="p"&gt;((&lt;/span&gt;&lt;span class="n"&gt;your_chat_id&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;yout_topic_id&lt;/span&gt;&lt;span class="p"&gt;));&lt;/span&gt;
&lt;span class="n"&gt;Or&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
&lt;span class="nn"&gt;Telemon&lt;/span&gt;&lt;span class="p"&gt;::&lt;/span&gt;&lt;span class="nf"&gt;send&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;"✅ Backup complete."&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="nf"&gt;.to_group&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It reads from a simple config file: telemon.toml&lt;br&gt;
Here’s what it looks like:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight toml"&gt;&lt;code&gt;&lt;span class="py"&gt;token&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="s"&gt;"your-telegram-bot-token"&lt;/span&gt;
&lt;span class="py"&gt;chat_id&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="err"&gt;your_chat_id&lt;/span&gt;
&lt;span class="py"&gt;group_id&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="err"&gt;your_group_id&lt;/span&gt;
&lt;span class="py"&gt;show_logs&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;
&lt;span class="py"&gt;parse_mode&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="s"&gt;"HTML"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;No external services, no database, no headache.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;🙏 Need Your Feedback!&lt;/strong&gt;&lt;br&gt;
This is my second published crate, so I’d really appreciate:&lt;/p&gt;

&lt;p&gt;⭐ A star on crates.io or GitHub&lt;/p&gt;

&lt;p&gt;Feedback, suggestions, and feature requests&lt;/p&gt;

&lt;p&gt;Real use cases — what would you use it for?&lt;/p&gt;

&lt;p&gt;Code reviews if you’re experienced 🧠&lt;/p&gt;

&lt;p&gt;Feel free to drop comments here or DM me if you want to chat!&lt;/p&gt;

</description>
      <category>rust</category>
      <category>crates</category>
      <category>telegram</category>
      <category>bot</category>
    </item>
  </channel>
</rss>
