This is a telegram bot written in PHP. It give you course scheduling for the current day.
Exemple: https://telegram.rohs.ch
git clone git@github.com:rohsyl/telegram-bot-horaires-bellevue.git
On the Telegram app create a new bot by talking to the BotFather.
More details on How to create a bot here.
Talk to the BotFather and type:
/mybots
Then click on your bot and next click on "API Token" to get your token
Edit the file constant.php
and set APIKEY
and BOTNAME
Edit the file set.php
and change the $hook_url
to point to your hook.php file on your own domain
Install dependencies
composer install
Open https://telegram.rohs.ch/set.php in your browser.
You will get a success message if the hook is successfully registred.
You can now write to the bot on the Telegram app