Skip to content

A Telegram bot to download music from youtube and yt music links in best quality.

License

Notifications You must be signed in to change notification settings

BioHazard786/Yt-Music-Bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Contributors Forks Stargazers Issues MIT License


Logo

YT Music Bot

A bot to download music from youtube and yt music links in best quality.

View Demo · Report Bug · Request Feature

Table of Contents

Getting Started

Prerequisites

Required Variables

  • BOT_TOKEN: Create a bot using @BotFather, and get the Telegram API token.

  • API_ID: Get this value from telegram.org

  • API_HASH: Get this value from telegram.org

  • DUMP_CHANNEL: Create a Telegram Channel. Get its ID from Rose

  • LOG_CHANNEL: Create a Telegram Channel. Get its ID from Rose

  • MONGODB: MongoDB Connection URL. Get this value from MondoDB

Required Softwares

Installation

1. Clone Repo

git clone https://github.com/BioHazard786/Yt-Music-Bot.git

2. Setting up config.env file

  • Create config.env file in root folder with the following variables.

2. Running Locally

# Install dependencies
pip install -r requirements.txt

# Run Locally
python -m Ayane

3. Running Locally using Docker

  • Start Docker daemon (SKIP if already running, mostly you don't need to do this):
sudo dockerd
  • Build Docker image:
sudo docker build . -t Ayane
  • Run the image:
sudo docker run Ayane
  • To stop the running image:
# Get running Image IDs
sudo docker ps

# Stop Docker Image
sudo docker stop id

Features

  • Highest Quality music output in mp3
  • Metadata Embedded in music file with thumbnail
  • Inline searching
  • Dump Channel
  • Log Channel
  • Docker Support

Built With

  • Pyrogram - The python telegram framework used

  • MongoDB - The Database used

  • Yt-dlp - A youtube-dl fork with additional features and fixes

Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

Distributed under the MIT License. See LICENSE for more information.

Contact

Mohd Zaid - @LuLu786 - bzatch70@gmail.com

Project Link : https://github.com/BioHazard786/Yt-Music-Bot

Acknowledgments

  • Thanks To Dan For His Awesome Library
  • Thanks to yt-dlp team for ther awesome Library
  • Thanks To All Everyone In This Journey

About

A Telegram bot to download music from youtube and yt music links in best quality.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published