Skip to content
NikamuraPublic

About

Klaid - Media Download Telegram Bot ๐ŸŽฅ๐Ÿ–ผ๏ธ๐Ÿค–

Topics

Resources

Stars

6 stars

Watchers

1 watching

Forks

Latest commit

ย 

History

60 Commits

Folders and files

Repository files navigation

Klaid - Media Download Telegram Bot ๐ŸŽฅ๐Ÿค–

Telegram bot written in Node.js for downloading videos and image galleries from the internet and serving them as native media in Telegram. Uses yt-dlp for videos and gallery-dl for image galleries. Ensures privacy as users do not need to visit websites to download content.

klaid logo

Features ๐ŸŒŸ

  • Supports Telegram groups. (/dl [URL] command)
  • Original message deletion.
  • Converts videos to MP4 automatically.
  • Image gallery downloads (Instagram carousels, Reddit galleries, etc.) via gallery-dl.
  • Automatic detection โ€” tries video first, falls back to gallery.
  • Whitelisting domains for automatic downloading in groups.
  • Multiple media downloads from single message.

Installation ๐Ÿ› ๏ธ

  1. Clone the repository:

    git clone https://github.com/Nikamura/klaid-bot.git
  2. Navigate to the project directory:

    cd klaid-bot/
  3. Install dependencies:

    pnpm install
  4. Set up your environment variables (refer to .env.example for required keys).

  5. Start the bot:

    pnpm run start

Usage ๐Ÿš€

  1. Start chat with Telegram bot.
  2. Send bot a video or gallery link.
  3. Receive the media!

or

  1. Add Telegram bot to your group chat.
  2. Send a command /dl (or /download) [URL] [URL] or a message with whitelisted domains.
  3. Receive the video or gallery!
  4. optional Set KLAID_STORAGE_CHAT_ID to a private channel or group the bot can post in. Inline downloads are uploaded there briefly, so inline mode also works for people who never started the bot.
  5. optional Make Bot user an admin in your group chat for request message cleanup and for download status and failure notices that only the person who posted the link can see.

Contributing ๐Ÿค

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License ๐Ÿ“

This project is open-source and available under the MIT License.

Credits โค๏ธ

Built with passion by Karolis Mazukna.

About

Klaid - Media Download Telegram Bot ๐ŸŽฅ๐Ÿ–ผ๏ธ๐Ÿค–

Topics

Resources

Stars

6 stars

Watchers

1 watching

Forks

Used by

Contributors

Languages