Coder Social home page Coder Social logo

telegram-music-bot's Introduction

telegram-music-bot

Docker pulls

This is a minimal music bot for Telegram.

It uses youtube-dl to search and download the video as well as ffmpeg to extract the audio.

This bot is very similar to TwiN/discord-music-bot, the main difference being that this one does not require streaming, but only uploading the music file to Telegram, making it much less complex.

Usage

Environment variable Description Required Default
TELEGRAM_BOT_TOKEN Telegram bot token yes ""
MAXIMUM_AUDIO_DURATION_IN_SECONDS Maximum duration of audio clips in second no 480
MAXIMUM_ACTIVE_TASKS Maximum amount of tasks that can be ran in parallel no 5

Prerequisites

If you want to run it locally, you'll need the following applications:

  • youtube-dl
  • ffmpeg

Docker

Pulling from Docker Hub

docker pull twinproduction/telegram-music-bot

Building image locally

Building the Docker image is done as following:

docker build . -t telegram-music-bot

You can then run the container with the following command:

docker run -e TELEGRAM_BOT_TOKEN=secret --name telegram-music-bot telegram-music-bot

telegram-music-bot's People

Contributors

twin avatar

Stargazers

Sergei Baigerov avatar

Watchers

Neustradamus avatar James Cloos avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.