This Telegram bot allows you to get a picture from a webcam on command.
- Make sure that Python 3 is installed on your computer.
- Install the necessary libraries using pip:
pip install opencv-python-headless telebot pyTelegramBotAPI
- Copy the code from this repository to a file
main.py
and replace `YOUR_TOKEN_BOT" with your Telegram bot token.
Launch the bot using Python:
In the Telegram bot, you can use the following commands:
/start
- Welcome message- `/webcam' - Get a picture from a webcam