Show HN: Push More – Receive Webhook Requests in Telegram
pushmore.io
pushmore.io
I made a simple service that accepts webhook requests and posts them to Telegram. You can interface with the bot directly (@pushmorebot) or add it to a group to have notifications show up there.
You can use it in multiple groups and have different notifications for each.
One caveat right now is that that the webhook URL is visible to anyone in the group so be careful when using it in a public group. (If there's enough interest I'll add some privacy controls.)
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);
}
}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.
But my boss decided we wouldn't need that, so I stopped working on it. Maybe I can release the code as open source.
Edit: User-configuration was via /command messages for the 1337 kids and clickable buttons for most options (better convenience/less steep learning curve).
TypeError: name.split(...)[0] is not a function at /app/server.js:74:37 at Layer.handle [as handle_request] (/rbd/pnpm-volume/649f928c-a1e2-4468-8355-00786f42479e/node_modules/.registry.npmjs.org/express/4.16.3/node_modules/express/lib/router/layer.js:95:5) at next (/rbd/pnpm-volume/649f928c-a1e2-4468-8355-00786f42479e/node_modules/.registry.npmjs.org/express/4.16.3/node_modules/express/lib/router/route.js:137:13) at Route.dispatch (/rbd/pnpm-volume/649f928c-a1e2-4468-8355-00786f42479e/node_modules/.registry.npmjs.org/express/4.16.3/node_modules/express/lib/router/route.js:112:3) at Layer.handle [as handle_request] (/rbd/pnpm-volume/649f928c-a1e2-4468-8355-00786f42479e/node_modules/.registry.npmjs.org/express/4.16.3/node_modules/express/lib/router/layer.js:95:5) at /rbd/pnpm-volume/649f928c-a1e2-4468-8355-00786f42479e/node_modules/.registry.npmjs.org/express/4.16.3/node_modules/express/lib/router/index.js:281:22 at Function.process_params (/rbd/pnpm-volume/649f928c-a1e2-4468-8355-00786f42479e/node_modules/.registry.npmjs.org/express/4.16.3/node_modules/express/lib/router/index.js:335:12) at next (/rbd/pnpm-volume/649f928c-a1e2-4468-8355-00786f42479e/node_modules/.registry.npmjs.org/express/4.16.3/node_modules/express/lib/router/index.js:275:10) at serveStatic (/rbd/pnpm-volume/649f928c-a1e2-4468-8355-00786f42479e/node_modules/.registry.npmjs.org/serve-static/1.13.2/node_modules/serve-static/index.js:75:16) at Layer.handle [as handle_request] (/rbd/pnpm-volume/649f928c-a1e2-4468-8355-00786f42479e/node_modules/.registry.npmjs.org/express/4.16.3/node_modules/express/lib/router/layer.js:95:5)
You really shouldn't echo out stacktraces to the internet ;).
Quick build => Quick break
could you please escape the whitespace? "hello world" returns me "hello+world" . Also I am trying to configure a nice template on zapier, so I'd need it to reckon "newline\n" last but not least, parse URLs please!
EDIT: looks way better if I send data in JSON instead that raw/form