Skip to content

SmartDlBot The ultimate toolkit on Telegram, offering Facebook,YouTube,Pinterest,Spotify Downloader. Simplify your tasks with ease!

Notifications You must be signed in to change notification settings

abirxdhack/SmartDlBot

Repository files navigation

SmartDlBot Telegram Bot 🌌

SmartDlBot: The ultimate toolkit on Telegram, offering Facebook,YouTube,Pinterest,Spotify Downloader. Simplify your tasks with ease!

GitHub stars GitHub forks GitHub issues GitHub pull requests PyPI - Python Version


🌟 Features

  • Facebook Video Downloader: Download videos from Facebook.
  • YouTube Video Downloader: Download videos from YouTube.
  • Pinterest Video Downloader: Download videos from Pinterest.
  • Spotify Track Downloader: Download tracks from Spotify.
  • Instagram Reel Downloader: Download Reels From Instagram
  • TikTok Video Downloader: Download TikTok Video From TikTok

Installation

To install pyrogram , yt-dlp , spotipy , requests , pillow , asyncio , aiofiles , aiohttp run the following command:

pip install -r requirements.txt

Note: If you previously installed pyrofork, uninstall it before installing pyrogram.

Handling YouTube Download Errors with Cookies

To avoid errors related to YouTube sign-in requirements, using a cookie file is effective. Here's how to set it up:

Steps to Export and Use Cookies:

  1. Create a Dedicated Chrome Profile:

    • It's recommended to create a new Chrome profile for managing your bot's cookies.
  2. Install a Cookie Management Extension:

    • Use Cookie Editor or similar extensions to manage your cookies.
  3. Export Cookies from YouTube:

    • Log into YouTube in your new browser profile and export cookies in Netscape format via the cookie extension.
  4. Save the Cookies File:

    • Update your cookies.txt in the SmartDlBot/cookies directory of your project.

Managing Cookies:

  • Cookie Expiry:

    • Refresh your cookies by exporting new ones if you encounter download issues.
  • Cookie Depletion:

    • Avoid frequent bot restarts and excessive YouTube requests to prevent early cookie expiry.

This setup should help manage YouTube content access efficiently without encountering sign-in or bot protection errors.

Configuration

  1. Open the config.py file in your favorite text editor.
  2. Replace the placeholders for API_ID, API_HASH, BOT_TOKEN, SPOTIFY_CLIENT_ID, and SPOTIFY_CLIENT_SECRET with your actual values:

Deploy the Bot

git clone https://github.com/abirxdhack/SmartDlBot
cd SmartDlBot
python3 main.py

Deploy the Bot With Screen

git clone https://github.com/abirxdhack/SmartDlBot
cd SmartDlBot
screen -S SmartDlBot
python3 main.py

Usage 🛠️

The bot supports the following commands:

Download videos and tracks from popular platforms using these commands:

/fb [Video URL] - Download a Facebook video.

/pin [Video URL] - Download a Pinterest video.

/in [Video URL] - Download a Instagram video.

/tt [Video URL] - Download a TikTok Video.

/sp [Track URL] - Download a Spotify track.

/yt [Video URL] - Download a YouTube video.

/song [Video URL] - Download a YouTube video as an MP3 file.

**Or You Can Use Below Commands **

.fb [Video URL] - Download a Facebook video.

.pin [Video URL] - Download a Pinterest video.

  • Example: .pin https://pin.it/6GoDMRwmE Downloads the specified Pinterest video
  • Note: 18+ Instagram Reels cannot be downloaded.

.in [Video URL] - Download a Instagram video.

.tt [Video URL] - Download a TikTok Video.

.sp [Track URL] - Download a Spotify track.

.yt [Video URL] - Download a YouTube video.

.song [Video URL] - Download a YouTube video as an MP3 file.

NOTE

Provide a valid public URL for each platform to download successfully For inquiries or feedback, please feel free to reach out via Telegram.

Ethical Notice 🔔

Ethics Reminder: Simply modifying a few lines of code does not constitute original authorship. When forking a project, always fork responsibly and give proper credit to the original creators.

Project Contributors

Author 📝

Update Author

  • Name ᔰ ᦲ ᔰ 「🇲🇲」
  • Telegram: @nkka404

About

SmartDlBot The ultimate toolkit on Telegram, offering Facebook,YouTube,Pinterest,Spotify Downloader. Simplify your tasks with ease!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages