Skip to content

Telegram bot for downloading video via youtube-dl

License

Notifications You must be signed in to change notification settings

jibin2020/YtbDownBot

 
 

Repository files navigation

YtbDownBot

Telegram bot that utilize youtube-dl functionality for downloading video directly to telegram. Simple clone of https://t.me/VideoTubeBot.

The Easy Way

Deploy

Dependencies

Install ffmpeg, mediainfo and python3.

Python3 dependencies install via pip3 install -r requirements.txt

Running

For running required phone number for bypassing telegram bot api upload files limitation to 50 MB.

Set the following enviroment variables:

  1. Bot token(from Bot Father): BOT_API_TOKEN

  2. Chat id between bot and agent (regular client with phone number for bypass limit in 50MB): BOT_AGENT_CHAT_ID

  3. Chat id between agent(regular client with phone number for bypass limit in 50MB) and bot: CHAT_WITH_BOT_ID

  4. Api id (https://core.telegram.org/api/obtaining_api_id): API_ID

  5. Api hash (https://core.telegram.org/api/obtaining_api_id): API_HASH

  6. Telegram client session string for telethon StringSession: CLIENT_SESSION

Build by: go build

Run by: ./YtbDownBot

About

Telegram bot for downloading video via youtube-dl

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 65.2%
  • Go 29.5%
  • Dockerfile 4.9%
  • Shell 0.4%