Continue from the previous tutorial regarding Telegram and Raspberry Pi, this time I would like to share on how we can add a camera to capture a photo and send it to the Telegram. Then, by adding a magnetic contact switch sensor, we can make the process to become auto capture. When developing this tutorial, I’m thinking of burglar alert application. Maybe you can use it for other application too. Please read through following tutorial first:
This video shows how to send photo to Telegram using Raspberry Pi.
This is the list of items used in the video.
This is python 3 sample program to capture a photo and send it to the Telegram. Please insert your Telegram Bot token at line 44.
Thanks for reading this tutorial. If you have any technical inquiries, please post at Cytron Technical Forum.
“Please be reminded, this tutorial is prepared for you to try and learn.
You are encouraged to improve the code for better application.“