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.
Try it out on Telegram: @SporeBusBot
- 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).- Telegram bot token
- LTA API credentials
- App URL
- Redis details (from OpenShift, or you can use Redis Cloud)
- Posthook API key and signature
- To run the server,
python runapp.py
. To run serverless, useflaskapp.py
. - 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