Just a simple Telegram Bot, which takes pictures with the Camera Module V2 and sends them to you
First talk to the @BotFather to get a token.
Make that token available as environment variable
export TELEGRAM_PICAM_BOT_TOKEN="<your_token>"
Grab the jar:
wget https://github.com/Cir0X/PiCamBot/releases/download/1.0-SNAPSHOT/PiCamBot-1.0-SNAPSHOT-all.jar
and then execute it with:
java -jar PiCamBot-1.0-SNAPSHOT-all.jar
Clone the repo and run it with
./gradlew run
or create a Shadow jar
./gradlew shadowJar
# => build/libs/PiCamBot-1.0-SNAPSHOT-all.jar
Tested on a Pi3 with the NoIR Camera Module V2