Skip to content
Achu2234 edited this page Apr 22, 2021 · 1 revision

Welcome to the CallsmusicVr2 wiki!

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.

Made with tgcalls and Pyrogram Smart Plugin

Features

Playlist, queue Loop one track when there is only one track in the playlist Automatically downloads audio for the first two tracks in the playlist to ensure smooth playing Automatically pin the current playing track Show current playing position of the audio How to Use

You can't play and listen in the same voice chat at the same time, it's recommended to run the userbot with your alt account and control the userbot with your main account by adding your main account as a contact of the alt account.

Start the userbot, try !ping, !uptime or !sysinfo command to check if the bot was running. send !join to a voice chat enabled group chat from userbot account itself or its contacts, be sure to make the userbot account as group admin and give it at least the following permissions: Delete messages Manage voice chats (optional) reply to an audio with /play to start playing it in the voice chat, every member of the group can use common commands such like /play, /current and !help now. check !help for more commands Requirements Python 3.6 or higher One or two Telegram accounts, better to have one for the userbot and another one as a contact of the userbot account to control it A Telegram API key and a Telegram account

Choose plugins you need, install dependencies which listed above and run pip install -U -r requirements.txt to install python package dependencies as well FFmpeg Run 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 vc.player and ping plugin, replace api_id, api_hash to your own value.

Method 1: use config.ini Create a config.ini file

[pyrogram] api_id = 1234567 api_hash = 0123456789abcdef0123456789abcdef

[plugins] root = plugins include = vc.player ping sysinfo Method 2: write your own userbot.py Replace the file content of userbot.py

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') License AGPL-3.0-or-later

tgvc-userbot, Telegram Voice Chat Userbot
Copyright (C) 2021  Dash Eclipse

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License
along with this program.  If not, see <https://www.gnu.org/licenses/>.
Clone this wiki locally