Hacker News new | ask | show | jobs
by jdemler 2983 days ago
This kind of feature can easily be implemented by oneself as we described here: https://www.curry-software.com/en/blog/telegram_unit_fail/

No need for an external service and dependency!

Also this approach allows very simple integration into code. I.e. in rust:

    pub fn telegram(msg: &str) {
        use std::process::Command;

        if let Err(e) = Command::new("telegram").arg(msg).status() {
            println!("Error occured while calling the telegram command! {:?}", e);
        }
    }
1 comments

Absolutely. Their API as well as community's convenience wrappers are pretty excellent. Wrote an entire bot in a day (@LiveCoinWatchBot) and that's a testament to the development ease, not really my skills. Definitely the case for considering not depending on anything there, even a library. Let alone 3rd party service. BUT...

There's a case for users without running available endpoints for the hooks. I'd bet those people who also have need for Telegram integration with some 3rd party webhooks are in majority over us.