Create a webcam server with Telegram and Raspberry PI

With this script it is possible to create a small webcam server with raspberry pi controlled by a Telegram bot.
Prerequisites:
– A USB webcam connected to the Raspberry PI
– Having created a BOT on Telegram, you can see how to do it here
– Having installed python-telegram-bot

To make the BOT work:
Download the dotmaui_webcam_server.py file, which can also be viewed below, insert the token of your bot on line 91.
After that, launch the bot from the console using the command:

python3 dotmaui_webcam_server.py

Now open the BOT on Telegram and type the command:

/capture

In a few seconds you will receive the photo taken by the webcam connected to the RaspberryPi directly on the BOT Telegram

For further information or support, contact us on Telegram at @DotMaui



Leave a Comment

Your email address will not be published. Required fields are marked *