Telegram: @yv2t_bot
- Install Docker and Docker Compose
- Clone this repository
git clone https://github.com/Desiders/ytdl_tg_bot.git - Copy
.env.exampleto.envand fill it with your data - Copy
config.toml.exampletoconfig.tomland fill it with your data - Run
just docker-upto start the project
-
Private chat:
- Send a direct video link, and the bot will reply with the video file;
- Reply to a message containing a video link with any text;
- Use the command
/vd <url>(/video_download <url>), or reply with the command without specifying the URL; - Use inline mode by typing
@bot_username <url>or@bot_username <text>to search for a video by its name.
-
Group chats:
- Send a direct video link, and the bot will reply with the video file;
- Use the command
/vd <url>(/video_download <url>), or reply with the command without specifying the URL; - Use inline mode by typing
@bot_username <url>or@bot_username <text>to search for a video by its name.
- Private chat and group chats:
- Use the command
/ad <url>(/audio_download <url>), or reply with the command without specifying the URL; - Use inline mode by typing
@bot_username <url>or@bot_username <text>to search for an audio by its name.
- Use the command
- Supports downloading playlists with range selection.
Format:[/command] <url> [items=start:count:step].
Example:https://youtube.com/playlist?list=xxxx [items=1:10:1];https://youtube.com/playlist?list=xxxx [items=1:10:];https://youtube.com/playlist?list=xxxx [items=:10:];https://youtube.com/playlist?list=xxxx [items=::].
- Supports language specification for subtitles or localized metadata.
Format:[/command] <url> [lang=ru|en|en-US|en-GB].
- The bot downloads media in the best available quality with a maximum file size limit of 500 MB (by default, but can be changed in the config).
- If in query parameters specified any of keys below with value
false, download will be skipped.
Keys:yv2t,yv2t_bot,download.
Example:https://youtube.com/playlist?yv2t=false;https://youtube.com/playlist?some=some&yv2t_bot=false.