- Install Telegram bot library
pip install python-telegram-bot
and Requests withsudo pip install requests
- Run it simply with python (eg.
python sbb_bot.py
)
- The
/start
command will get executed on its own when you start talking to the bot, otherwise message/start
to the bot - Type
/help
to know the required syntax to query the bot for trains - The Syntax is
/trains <Departure> <Destination> <Via>
, where the<Via>
argument is optional - The next four connections between indicated stations will be displayed.
BON VOYAGE!