This is a Python script that downloads YouTube videos and sends them to a Telegram.
You can install the required modules by running the following command:
pip install pyrogram yt-dlp pydantic asyncio tgcrypto
Before running the script, you need to fill in the
- api_id and api_hash (can be obtained by following this link https://my.telegram.org)
- chat_id
- channel_url
To run the script, simply execute the following command:
python yt-tg.py