Send Video to Telegram Bot Using Raspberry Pi Camera

Send Video to Telegram Bot Using Raspberry Pi Camera

Introduction

Do you want to send a video to the telegram bot using a raspberry pi? In this tutorial, we record a video using Raspberry Pi camera and send the video to the Telegram bot. The default video file recorded by Raspberry Pi by default is an H264 file. Telegram cannot play this type of video file. So, we need to convert the video to an mp4 file before we send it to the Telegram bot.

Video

This video shows how to get make a simple security system that can record a video using Raspberry Pi Camera and send it to telegram bot.

Hardware Preparation

This is the list of items used in the video.

Sample Program

This is python3 sample program for sending a video to telegram. You can use it with Thonny Python IDE.

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."