Code Monkey home page Code Monkey logo

voicechatpyrobot's Introduction

Pyrogram bot to automate streaming music in voice chats

Help

If you face an error, want to discuss this project or get support for it join @su_Chats.

Inspiration

Enormous and huge credits to @itayki from Israel for being with me while waiting for Mr. @TwitFace, AKA Andrew Lungers to release pytgcalls to write this bot.

Idea

From Mr. @TwitFace, AKA Andrew Lungers.

Requirements

  • A computer running a Linux distribution with a desktop environment,
  • the latest version of Telegram desktop,
  • pulseaudio (installation on Ubuntu: apt install pulseaudio),
  • mplayer (installation on Ubuntu: apt install mplayer),
  • python3 (installation on Ubuntu: apt install python3) and
  • python3-pip (installation on Ubuntu: apt install python3-pip) installed on it.

Running

  1. Clone the repository and change the dir:
    git clone https://github.com/rojserbest/VoiceChatPyroBot.git && cd VoiceChatPyroBot
  1. Modify sample_config.py to use your credenitals and then rename/copy it to config.py:

    API_ID: your api id from my.telegram.org

    API_HASH: your api hash from my.telegram.org

    TOKEN: your bot token from @BotFather

    SUDO_USERS: a list of user ids which can pause, skip and change volume

    LOG_GROUP: (optional) a group chat id to send "now playing" messages to in a non-spammy way

  2. Install the required Python packages:

    pip(3) install -U -r requirements.txt
  1. Make sure pulseaudio is running and load a null sink named MySink by running:
    bash pa.sh
  1. Run the bot:
    python(3) bot.py
  1. Open Telegram desktop, join a voice chat and set MySink as your microphone.
  2. Once you've done the steps above, you can start using and sending commands to your bot to stream in the voice chat you are currently in with Telegram desktop!

voicechatpyrobot's People

Contributors

iiiiii1wepfj avatar odysseusmax avatar rojvv avatar spechide 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.