Sends messages about the door state by telegram
- sudo apt update && sudo apt upgrade
- sudo apt-get install python-pip
- sudo pip install telepot
- sudo apt install python-gpiozero
- Create bot in telegram, use the Chat 'BotFather' and type the command /newbot.
- Enter bot name, e.g. "This is my Bot"
- Enter bot Id, e.g. this_is_my_bot
- You will get a bot ID
- Write a file 'cnfg/botId.txt' to the root directory of this project. Write your bot id to this file.
The bot id suffice the following format.
1234567890:aAbBcCdDeEfFgGhHiIjJkKlLmMoOpPqQrRs
Write this ID only to the cnfg/botId.txt.
To create a bot and send some messages I found a useful description. See https://www.instructables.com/id/Set-up-Telegram-Bot-on-Raspberry-Pi/. Many thanks to NickL17.