Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 1.22 KB

README.md

File metadata and controls

18 lines (13 loc) · 1.22 KB

Description

A Telegram bot that sends users configurable updates on next bus timings in Singapore using the data provided by LTA, e.g. you can set it to send you a message about 1 minute before your bus arrives so you don't have to keep looking out for it.

Link

Try it out on Telegram: @SporeBusBot

Instructions

  1. Put in the following details in flaskapp.cfg directly or set them as environment variables accordingly (for OpenShift Online, managed under applications/deployments and not builds or image), then host it on OpenShift with Python 3 (redirect https under routing).
  2. To run the server, python runapp.py. To run serverless, use flaskapp.py.
  3. When setting up your Telegram bot for the first time, visit the following URL (based on your values in Step 1) in your browser to set up your webhook: APP_URL/TOKEN/set_webhook