Live data from Hacker News

Telegram Middleman Bot – Push Notifications as easy as POST

github.com

1–10 of 29 posts

Re: Telegram Middleman Bot – Push Notifications as easy as POST

#2
I have not looked at this in detail, but I can't see what advantages this has over just sending a simple http request like this:

  https://api.telegram.com/botTOKEN/sendMessage?id=YOUR_ID&message="your servers are on fire"

because that's all you need as far as I know. Works via GET, POST, PUT, everything.

Only thing I could see is being able to switch it out for other services easier.

Re: Telegram Middleman Bot – Push Notifications as easy as POST

#3
post #2

I have not looked at this in detail, but I can't see what advantages this has over just sending a simple http request like this: https://api.telegram.com/botTOKEN/sendMessage?id=YOUR_ID&message="your servers are on fire" because that's all you need as far as I know. Works via GET, POST, PUT, everything. Only thing I could see is being able to switch it out for other services easier.

You're right, but you'd need your own specific Telegram-internal user id so that your message will only be routed to your specific chat. With my little piece of code, n people can register at 1 bot. Without it you would either have to figure out your user id first or have n separate bots for n people. Of course, the advantage is not too dramatic ;-) And yes, the ability to link the bot to further services than only Telegram is another plus.

Re: Telegram Middleman Bot – Push Notifications as easy as POST

#5

Is there any limit to the number of messages stored in a telegram conversation? Many users report previous messages being deleted without a warning http://telegramgeeks.com/2016/02/telegram-only-shows-us-the-...

The cut off seems to be a million messages, seems like enough to me

Re: Telegram Middleman Bot – Push Notifications as easy as POST

#7
post #6

Why is setting up a bush notification system so difficult that it's easier to piggy back on telegram? I have a project I want to do that involves making your own PUSH server (for battery reasons). Would it be difficult to setup

I'd be interested in that project, can you show it?

Re: Telegram Middleman Bot – Push Notifications as easy as POST

#8
post #7
post #6

Why is setting up a bush notification system so difficult that it's easier to piggy back on telegram? I have a project I want to do that involves making your own PUSH server (for battery reasons). Would it be difficult to setup

I'd be interested in that project, can you show it?

I haven't made it. I've just started thinking about what I'd need to get it done. I'm a systems dev not an Android app person.

I want to make a thing that will forward my SMSs to a webpage so I can read them online and I want to be able to start conversation, reply to conversations, etc. I want it to be open source and free.

I'm not really interested in making it, I just want it.

Re: Telegram Middleman Bot – Push Notifications as easy as POST

#9
> And they require your little server-side script to include some SMTP library and connect to a mail server. That's too heavyweight just to get some short information.

Really? Building and deploying a bot made in an arbitrary language is less onerous than registering for a Gmail account to send mail reports through?

Perhaps it's just the author's sense of humour, but this didn't strike me as helpful at all. Notifications can be handy for some things, email for other things. Depends on the person. But it's not hard to set up an email account. That's partly why it's still around.

Re: Telegram Middleman Bot – Push Notifications as easy as POST

#10
post #5

Is there any limit to the number of messages stored in a telegram conversation? Many users report previous messages being deleted without a warning http://telegramgeeks.com/2016/02/telegram-only-shows-us-the-...

The cut off seems to be a million messages, seems like enough to me

I've seen my father manually clear all his whatsapp chats at the end of the week. 1 million is definitely enough for everyone but somebody who's not using telegram for chat.
Post reply on HN