Enutrof commited on
Commit
8c44a7e
·
1 Parent(s): 0a5efea

Updated with segmenbt detail

Browse files
Files changed (1) hide show
  1. README.md +13 -2
README.md CHANGED
@@ -2,16 +2,27 @@
2
 
3
  A Telegram Bot that downloads videos using yt-dlp and sends them back to the user.
4
 
 
 
5
  Usage:
6
  1. Install necessary libraries:
7
  pip install python-telegram-bot yt-dlp
8
  2. Get a Bot Token from BotFather on Telegram.
9
  3. Replace "YOUR_TELEGRAM_BOT_TOKEN" with your actual token.
10
  4. Run the script: python your_script_name.py
11
- 5. Send a video URL to your bot on Telegram.
 
 
 
 
12
 
13
  Notes:
14
  - Telegram has a file size limit for bots sending files (usually 50MB).
15
  This bot attempts to download a suitable format but might fail for very large videos.
16
  - Ensure ffmpeg is installed if yt-dlp requires it for merging formats or conversions.
17
- (yt-dlp often bundles it or can use a system-wide ffmpeg).
 
 
 
 
 
 
2
 
3
  A Telegram Bot that downloads videos using yt-dlp and sends them back to the user.
4
 
5
+ A Telegram Bot that downloads videos or video segments using yt-dlp.
6
+
7
  Usage:
8
  1. Install necessary libraries:
9
  pip install python-telegram-bot yt-dlp
10
  2. Get a Bot Token from BotFather on Telegram.
11
  3. Replace "YOUR_TELEGRAM_BOT_TOKEN" with your actual token.
12
  4. Run the script: python your_script_name.py
13
+ 5. Send commands to your bot on Telegram:
14
+ /download <video_url>
15
+ /download <video_url> [START_TIME]
16
+ /download <video_url> [START_TIME] [END_TIME]
17
+ (Time format: HH:MM:SS or MM:SS)
18
 
19
  Notes:
20
  - Telegram has a file size limit for bots sending files (usually 50MB).
21
  This bot attempts to download a suitable format but might fail for very large videos.
22
  - Ensure ffmpeg is installed if yt-dlp requires it for merging formats or conversions.
23
+ (yt-dlp often bundles it or can use a system-wide ffmpeg).
24
+
25
+ Tasks:
26
+ - Deployment
27
+ - Set up docker first.
28
+ - Switch to using a subprocess