Giter VIP home page Giter VIP logo

gabrielmaialva33 / winx-music-bot Goto Github PK

View Code? Open in Web Editor NEW
7.0 1.0 4.0 2.49 MB

Winx Bot é um Poderoso Bot de Música+Vídeo para o Telegram escrito em Python, utilizando Pyrogram e Py-Tgcalls, através do qual você pode transmitir músicas, vídeos e até mesmo transmissões ao vivo nas suas chamadas em grupo por meio de várias fontes. 🎵🎥✨

License: MIT License

Dockerfile 0.07% Python 99.07% Shell 0.86%
apple bot bot-api music music-bot python3 spotify-api stream streaming telegram

winx-music-bot's Introduction


Winx Bot
Winx Bot for Telegram

wakatime GitHub top language GitHub language count Repository size License GitHub last commit Maia

About   |    Technologies   |    Installation   |    Configuration   |    Documentation   |    License


🔖 About

Winx Bot é um bot de música e vídeo para o Telegram escrito em Python, utilizando Phoenix, através do qual você pode transmitir músicas, vídeos e até mesmo transmissões ao vivo nas suas chamadas em grupo por meio de várias fontes. 🎵🎥✨

  • YouTube, Soundcloud, Apple Music, Spotify, Resso, Live Streams and Telegram Audios & Videos support.
  • Written from scratch, making it stable and less crashes with attractive thumbnails.
  • Loop, Seek, Shuffle, Specific Skip, Playlists etc support
  • Multi-Language support

💻 Technologies

📦 Installation

# install ffmpeg
sudo apt-get update -y && sudo apt-get upgrade -y
sudo apt-get install -y --no-install-recommends ffmpeg
# clone the repository
git clone https://github.com/gabrielmaialva33/winx-music-bot.git
# enter the directory
cd winx-music-bot
# install the dependencies
pip3 install --no-cache-dir --upgrade --requirement requirements.txt

🔧 Configuration

copy the sample.env file to .env and fill the values

# Configure .env file
cp sample.env .env
# generate session string
python3 genstring.py
# run the bot
python3 -m WinxMusic

📝 Documentation

# coming soon

✍️ Author

Maia
Maia

License

MIT License

winx-music-bot's People

Contributors

gabrielmaialva33 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

winx-music-bot's Issues

feat: Add option to restrict usage of the bot to certain group IDs

Feature Request

Describe the Feature Request

I've been running a private instance of the bot for a few days, and I really like it. However, I'm concerned with the fact that groups in Telegram can be publicly found via the search feature, and that my instance of the bot could be used without my consent.

As such, I think a feature to optionally restrict the usage of the bot to certain group IDs would really be desired not only for me, but for everybody who wants to run private instances of this bot, especially considering it requires the usage of a companion userbot which is tied to a real phone number.

Describe Preferred Solution

I think the preferred way to do this would be to have a variable in app.json to define the list of group IDs to restrict bot usage to. If the value of this variable was empty, no restriction would be applied and the bot would work in all groups. Otherwise, the value would be interpreted as a comma-separated list of group IDs where the bot would be allowed to operate in.

If group restriction was enabled and someone attempted to add the bot to a group outside the list of allowed group IDs, the bot would simply send a message stating something like "I'm not authorized to operate in this group." and refuse to respond to any further commands.

Describe Alternatives

There could also be a boolean variable to enable/disable group restriction explicitly, if desired.

Alternatively, when group restriction was enabled, the bot could simply do nothing at all when added to a group outside the list of allowed group IDs, not even stating it's not authorized to operate there.

Related Code

N/A

Additional Context

If the feature request is approved, would you be willing to submit a PR?
(Help can be provided if you need assistance submitting a PR)

  • Yes
  • No

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.