Telegram UserBot untuk Play Lagu di OS.
- Generate Pyrogram session string by running generate-pyrogram-session-string.py by yourself or through Replit
- Enable the worker after deploy the project to Heroku
Ubah value PLUGIN
variable kalau kamu mau coba voice chat
plugins lain.
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
Plugin: vc.player
Commands only works in groups, userbot account itself and contacts can use any commands, all members can use common commands after the userbot join the VC
- Mulai Userbot ini, ketik
!ping
,!uptime
atau!sysinfo
perintah untuk mengecek kalau bot ini berjalan. - kirim
!join
untuk gabung ke OS apabila telah diset semua atau manual set admin beri akses:- Hapus Pesan
- Atur voice chats (optional)
- reply ke audio dengan
/play
untuk start play lagu di OS, setiap member group bisa gunakan perintah/play
,/current
dan!help
- check
!help
untuk perintah lebih lanjut
Plugin: vc.channel
hampir semua player
plugin hanya bekerja pada penyimpanan pesan,
!join
untuk join group atau channel.
Plugin: ping
and sysinfo
Perintah ini hanya berlaku untuk userbot itu sendiri dan kontaknya.
- 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.txt
to install Python package dependencies as well - FFmpeg
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.
Create a config.ini
file
[pyrogram]
api_id = 1234567
api_hash = 0123456789abcdef0123456789abcdef
[plugins]
root = plugins
include =
vc.player
ping
sysinfo
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",
"sysinfo"
]
)
app = Client("tgvc", api_id, api_hash, plugins=plugins)
app.start()
print('>>> USERBOT BERMAIN')
idle()
app.stop()
print('\n>>> USERBOT BERHENTI')
- Read module docstrings of plugins/ you are going to use at the beginning of the file for extra notes
This userbot should run fine on any cloud server. Popular choices of cloud server providers are DigitalOcean, Vultr and Hetzner. You can use one of the following referral links to sign up on Vultr to give the project author credits in case you want to try Vultr.
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/>.