Telegram and Game APIs
It's bot season and I'm doing my part.
Telegram bots are quite popular. Maybe because it is so easy to make.
I play this game called Paladins. It's kind of like Overwatch, but free and a lot better in my opinion. I recently found out that there is an official API available for the game, where you can get comprehensive details of anything you'd want about the game.
I took the opportunity and signed myself up for an API key and got to work with getting data from the API. Since it was an HTTP API, I made up a ton of python scripts to get and parse the data so that it can be read easily. As I was doing this one of my friends recommended that I put the whole thing into a Telegram bot, so that if people play the game, they can use it to get details of their gameplay.
Right now, you could say that all I am doing is making an API wrapper. That is entirely correct, up to some point. I use the functions I make to construct a readable message that can be sent to Telegram, with formatting and all. I then use Node-RED to handle the receiving of incoming messages and how to handle them. I plan on making a script that runs forever and answers to all incoming messages without having to rely on a second piece of software.
I already have a GitHub repo set up so that when I get the scripts working I'll upload them there. Keep an eye out if you want. And if you want to contribute, be my guest. Make and issue and we can talk about it on how we can proceed.
UPDATE (18/03/2019): The code has been uploaded onto GitHub.