DEV Community

Abduqodir
Abduqodir

Posted on

1 1 1 1 1

Telemon – Send Telegram Alerts from Any Rust Project

Hey Rustaceans! 🦀

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 telemon – a lightweight message dispatcher that lets you send alerts and logs directly to Telegram from any Rust application.

💡 What Is telemon?
telemon is a tiny but powerful crate that allows you to:

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

With a single line:

use telemon::Telemon;
Telemon::send("🔥 Server is down!").to((your_chat_id, yout_topic_id));
Or:
Telemon::send("✅ Backup complete.").to_group();
Enter fullscreen mode Exit fullscreen mode

It reads from a simple config file: telemon.toml
Here’s what it looks like:

token = "your-telegram-bot-token"
chat_id = your_chat_id
group_id = your_group_id
show_logs = true
parse_mode = "HTML"
Enter fullscreen mode Exit fullscreen mode

No external services, no database, no headache.

🙏 Need Your Feedback!
This is my second published crate, so I’d really appreciate:

⭐ A star on crates.io or GitHub

Feedback, suggestions, and feature requests

Real use cases — what would you use it for?

Code reviews if you’re experienced 🧠

Feel free to drop comments here or DM me if you want to chat!

DevCycle image

Fast, Flexible Releases with OpenFeature Built-in

Ship faster on the first feature management platform with OpenFeature built-in to all of our open source SDKs.

Start shipping

Top comments (0)

Tiger Data image

🐯 🚀 Timescale is now TigerData: Building the Modern PostgreSQL for the Analytical and Agentic Era

We’ve quietly evolved from a time-series database into the modern PostgreSQL for today’s and tomorrow’s computing, built for performance, scale, and the agentic future.

So we’re changing our name: from Timescale to TigerData. Not to change who we are, but to reflect who we’ve become. TigerData is bold, fast, and built to power the next era of software.

Read more

👋 Kindness is contagious

Discover fresh viewpoints in this insightful post, supported by our vibrant DEV Community. Every developer’s experience matters—add your thoughts and help us grow together.

A simple “thank you” can uplift the author and spark new discussions—leave yours below!

On DEV, knowledge-sharing connects us and drives innovation. Found this useful? A quick note of appreciation makes a real impact.

Okay