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!

Quadratic AI

Quadratic AI – The Spreadsheet with AI, Code, and Connections

  • AI-Powered Insights: Ask questions in plain English and get instant visualizations
  • Multi-Language Support: Seamlessly switch between Python, SQL, and JavaScript in one workspace
  • Zero Setup Required: Connect to databases or drag-and-drop files straight from your browser
  • Live Collaboration: Work together in real-time, no matter where your team is located
  • Beyond Formulas: Tackle complex analysis that traditional spreadsheets can't handle

Get started for free.

Watch The Demo 📊✨

Top comments (0)

👋 Kindness is contagious

Explore a trove of insights in this engaging article, celebrated within our welcoming DEV Community. Developers from every background are invited to join and enhance our shared wisdom.

A genuine "thank you" can truly uplift someone’s day. Feel free to express your gratitude in the comments below!

On DEV, our collective exchange of knowledge lightens the road ahead and strengthens our community bonds. Found something valuable here? A small thank you to the author can make a big difference.

Okay