Send Photo of Burglar To IoT Telegram Bot Using Raspberry Pi

Send Photo of Burglar To IoT Telegram Bot Using Raspberry Pi

Introduction

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:

Video

This video shows how to send photo to Telegram using Raspberry Pi.

 

Hardware Preparation

This is the list of items used in the video.

Sample Program

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.

 

Thank You

References:

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 a better application."