An edited version of travel.go from was used to add a refresh button to the bus timing messages which send dummy data to be handled by callbacks. The Handle method successfully output to log upon receiving the data.
Screenshots (if appropriate):
Types of changes
[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
Checklist:
[x] My code follows the code style of this project. (I think)
[ ] My change requires a change to the documentation.
Description
Callbacks
main.go
Motivation and Context
Callback handling is a necessary part of using inline buttons in telegram (the buttons that stick below messages like in Countmeinbot)
It lays the groundwork for refreshing bus timings (https://github.com/usdevs/cinnabot/issues/34) and any future changes using inline buttons.
How Has This Been Tested?
An edited version of travel.go from was used to add a refresh button to the bus timing messages which send dummy data to be handled by callbacks. The Handle method successfully output to log upon receiving the data.
Screenshots (if appropriate):
Types of changes
Checklist: