A project to integrate EPFL-API with Telegram, and more. It use Node.js and yagop's telegram bot api.
Telegram Messenger is a free and secure messaging for Android and iOS smartphones. You can send messages, photos, videos and documents to people who are in your phone contacts. The Telegram messaging app is cloud-based and cross-platform app which can be accessed via any device. Telegram messages are heavily encrypted and can self-destruct. The apps uses advance encryption technique and decentralized infrastructure which makes the app as one of the fastest messaging apps available in the market.
- Install Telegram
- Contact @BotFather
- Create a new bot (/newbot)
- Generate an authorization token (/token)
- Check the others options with /help, e.g. /setuserpic, /setcommands, /setabouttext
Pass the authorization token as an environment variable to the docker container:
docker run -e "TELEGRAM_BOT_TOKEN=123456789:ABCDEFGHIJKLMOPKRSTUVWXYZ" --name='EPFLegram' epflsti/epflegram
npm install the docker will execute the
npm start and run
node index.js - the telegram polling is up !
You can run the unit with systemctl (the docker stuff will be done in it)
sudo systemctl start EPFLegram.service
Same with fleetctl :
fleetctl start EPFLegram.service
node index.js or
/menu - Choose between Parmentier, BC, Atlantide, Corbusier or Vinci menus
/menuAll - All EPFL menus
-  Logs more (i.e. Metro)
-  Modulize EPFLFunc
-  Tests
Refactoring (menu, metro and people are now in seperate file). Generic menu call on behaviors. Thanks to @domq
First version with basics commands and tests