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!

AWS GenAI LIVE image

Real challenges. Real solutions. Real talk.

From technical discussions to philosophical debates, AWS and AWS Partners examine the impact and evolution of gen AI.

Learn more

Top comments (0)

AWS GenAI LIVE image

Real challenges. Real solutions. Real talk.

From technical discussions to philosophical debates, AWS and AWS Partners examine the impact and evolution of gen AI.

Learn more