Telegram - Notifications

Suggestions & ideas / Suggestions & idées
Locked
User avatar
shogi4fun
Posts: 6
Joined: 09 February 2016, 14:54

Telegram - Notifications

Post by shogi4fun »

Hi,

how about notifications with telegram?
I can help implementing it, if there is any need.

I also wrote this almost two weeks ago as email to BGA, but didn't got any answer yet.

Information if needed: http://telegram.org
telegram is like WhatsApp
- it's free and addfree
- for Android, iPhone/iPad, WP, PC, Mac, Linux and also as Web-version available (all are synchronized!)
- open interface for writing clients and bots
That's the most important things for me.

Bye,
BCM
User avatar
polettix
Posts: 42
Joined: 10 March 2019, 19:22

Re: Telegram - Notifications

Post by polettix »

Maybe this is not interesting (or was not three years ago), maybe people would start using it when it's there but don't get the value now.

In the meantime... I can suggest a little clunky but effective solution that I've adopted to this regard:

* I use gmail to get all notifications
* I set an automatic forward of "It is your turn!" messages to an email address in Mailgun (which gives you a free account with some free resources, so everything is for free for my purposes)
* In Mailgun, I set a receive route that basically turns the incoming forwarded email into a POST call to a webservice I set up elsewhere
* Last, the webservice receives the mail message (via HTTP POST), parses the subject line and sends a message with the link to the table in Telegram.

I guess that you might take some shortcuts (e.g. by setting up an email reception server) but using Mailgun allowed me to get started very quickly and enjoy Telegram notifications :-)

It might also help to be able and set different email addresses for normal site operations and notifications, just to skip a step.

I'll probably post an article on this, I can put the link here if it's of interest.
User avatar
polettix
Posts: 42
Joined: 10 March 2019, 19:22

Re: Telegram - Notifications

Post by polettix »

I have a proof of concept that can be shared - until it breaks :D (there is a limit on the number of messages I can handle for free monthly)
  • just write anything, it will answer with an email address
  • in your email, forward messages from noreply@boardgamearena.com with subject containing either "It is your turn!" or "End of game." to that email address
  • if you have to provide confirmation for that email address (e.g. gmail asks for it), you will get the text of the confirmation email as a message from the bot inside Telegram
  • after the forwarding is setup, every notification for either turn or end game will generate a message from the bot, with a link to the relevant table
Hope you will enjoy this!
User avatar
CB Droege
Posts: 344
Joined: 30 November 2012, 02:26
Location: Munich
Contact:

Re: Telegram - Notifications

Post by CB Droege »

The site has mobile and web notifications natively now. ;D
Locked

Return to “Suggestions”