This project features a Telegram bot that interacts with video data via a connected camera. It is capable of capturing, processing, and streaming video data. Additionally, the bot can download videos from YouTube and supports playback of these files.
- Video Capture & Processing: Utilizes
pygame.camerafor handling video operations. - Video Streaming: Streams video data efficiently.
- YouTube Downloads: Integrates
pytubefor downloading videos directly through the bot. - Play downloaded youtube mp3/mp4 files
- Python 3.x
telebotpygamepytube- Additional dependencies are listed in
requirements.txt.
- Clone the repository:
git clone https://github.com/ToxicSnail/dorm_bot.git cd dorm_bot.git - Install the necessary Python packages:
pip install -r requirements.txt
- Encrypt your password:
Before launching the bot, you must first encrypt a password that will be used for bot access:
python encryptor.py
- Configure your Telegram API token: Ensure you have a valid Telegram API token and save it in a file named api.txt.
- Run the bot:
python dorm.py
- Interact with the bot on Telegram to access its functionalities.
You can change these parameters at your discretion:
- The bot uses a camera connected through /dev/video0 with a resolution of 640x426 pixels.
- Videos are processed and streamed in the specified format and quality.
This is project open-sourse. I developted this in my course work in University @Gorky Kirill