Telegram Voice Chat UserBot
A Telegram UserBot to Play Audio in Voice Chats.
This is also the source code of the userbot which is being used for playing DJ/Live Sets music in VC DJ/Live Sets group.
|Description||Voice Chat Audio Player||Voice Chat Audio Recorder||ping and uptime|
|Dependencies||ffmpeg||ffmpeg, opus-tools, bpm-tools|
- Python 3.6 or higher
- A Telegram API key and a Telegram account
- Choose plugins you need, install dependencies which listed above and run
pip install -U -r requirements.txtto install python package dependencies as well
Choose one of the two methods and run the userbot with
python userbot.py, stop with CTRL+c. The following example assume that you were going to use
ping plugin, replace
api_hash to your own value.
Method 1: use config.ini
[pyrogram] api_id = 1234567 api_hash = 0123456789abcdef0123456789abcdef [plugins] root = plugins include = vc.player ping
Method 2: write your own userbot.py
Replace the file content of
from pyrogram import Client, idle api_id = 1234567 api_hash = "0123456789abcdef0123456789abcdef" plugins = dict( root="plugins", include=[ "vc.player", "ping" ] ) app = Client("tgvc", api_id, api_hash, plugins=plugins) app.start() print('>>> USERBOT STARTED') idle() app.stop() print('\n>>> USERBOT STOPPED')
- Read module docstrings of plugins/ you are going to use at the beginning of the file for extra notes
- Commands are available to the UserBot account itself only to simplify the source code, it's easy for you to fork the project and make modification to fit your needs