SBBot
This is a Telegram bot that provide public transport information in Switzerland. It fetches data from Viadi that also powers the SBB/CFF/FFS app. It was built during StartHack 2017, a hackathon taking place at the University of St Gallen, by a team of 4 students of EPFL and ETHZ.
Demo
Unique train selection
Weekly train selection
Install
You can just click on this link and either directly talk to the bot or first install Telegram.
Running your own bot instance
If you'd like to run you own instance of the bot, you'll need to register for an Telegram Bot API key by talking with the BotFather. This key have to be place in the Telegram_API_token.txt file. You'll also need to install python-telegram-bot. Instructions can be found by following the previous link.
$ pip3 install python-telegram-bot
Additionally, you will have to install request.
$ pip3 install requests
To launch the bot server, cd sbbot
and run
python3 sbbCffBot.py
Your bot should then be available under the username you registred by the BotFather.