Tiny WebSocket bot for MAX chat:
- listens for messages in one chat,
- detects YouTube video links,
- downloads the video to local cache,
- sends progress updates,
- uploads the video to chat,
- removes cached file.
- Install dependencies:
pip install -r requirements.txt- Create
.envfrom.env.exampleand set required values:
MAX_WS_TOKENMAX_CHAT_ID
python main.py- Cache folder:
.cache/youtube/ - Raw WebSocket events are printed for debugging.