Sign inSign up

twinproduction/telegram-music-bot

By twinproduction

Updated about 6 years ago

Image
0

1.1K

twinproduction/telegram-music-bot repository overview

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 TwinProduction/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 variableDescriptionRequiredDefault
TELEGRAM_BOT_TOKENTelegram bot tokenyes""
MAXIMUM_AUDIO_DURATION_IN_SECONDSMaximum duration of audio clips in secondno480
MAXIMUM_ACTIVE_TASKSMaximum amount of tasks that can be ran in parallelno5

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

Tag summary

Content type

Image

Digest

Size

38.1 MB

Last updated

about 6 years ago

docker pull twinproduction/telegram-music-bot