The tdl tool uploads videos as files (downloadable). This Python script uploads videos as streaming videos (plays inline like in your screenshot), which makes it harder for users to download.
- Go to https://my.telegram.org/apps
- Login with your phone number
- Click "API development tools"
- Create a new application:
- App title: "Video Uploader"
- Short name: "uploader"
- Platform: Desktop
- Copy your API ID and API hash
pip install telethonEdit upload_video.py and replace:
API_ID = 'YOUR_API_ID' # Replace with your API ID (number)
API_HASH = 'YOUR_API_HASH' # Replace with your API hash (string)The first time you run the script, it will ask for your phone number and verification code:
python upload_video.py "E:\telegram\downloads\video.mp4" 3305131927Enter your phone number and the code Telegram sends you.
python upload_video.py "E:\telegram\downloads\EM - Lecture 1.mp4" 3305131927python upload_video.py "E:\telegram\downloads" 3305131927 --folder- CE made easy: 3305131927
- Prime batch private: 3399205162
- MIT-J: 4880826523
- Screen record
- Use tools like
tdlto download - Take screenshots
✅ But it makes it harder because:
- Video plays inline (no download button)
- Must enable "Restrict Saving Content" in group settings
- Combine with watermarking for better protection
- Open CE made easy group in Telegram
- Click group name → Edit
- Enable "Restrict Saving Content"
- This prevents forwarding and official download buttons
For better protection, add watermarks with FFmpeg before uploading.