Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions MusicBot/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@
SESSION_NAME = getenv("SESSION_NAME", "session")
BOT_TOKEN = getenv("BOT_TOKEN")
BOT_NAME = getenv("BOT_NAME")
UPDATES_CHANNEL = getenv("UPDATES_CHANNEL", "ZauteKm")
BG_IMAGE = getenv("BG_IMAGE", "https://telegra.ph/file/e8ef50ce40d228a5fde80.png")
UPDATES_CHANNEL = getenv("UPDATES_CHANNEL", "Mo_Tech_YT")
BG_IMAGE = getenv("BG_IMAGE", "https://telegra.ph/file/82a87d77d3b42c48ccd4f.jpg")
admins = {}
API_ID = int(getenv("API_ID"))
API_HASH = getenv("API_HASH")
BOT_USERNAME = getenv("BOT_USERNAME")
ASSISTANT_NAME = getenv("ASSISTANT_NAME", "ZauteMusicPlayer")
ASSISTANT_NAME = getenv("ASSISTANT_NAME", "MTMusicPlayer")
SUPPORT_GROUP = getenv("SUPPORT_GROUP", "tgVCSets")
PROJECT_NAME = getenv("PROJECT_NAME", "Group Music Bot v4")
SOURCE_CODE = getenv("SOURCE_CODE", "github.com/ZauteKm/GroupMusicBot")
PROJECT_NAME = getenv("PROJECT_NAME", "MT Group Music Bot v4")
SOURCE_CODE = getenv("SOURCE_CODE", "github.com/MRK-YT/MT-GroupMusic-Bot")
DURATION_LIMIT = int(getenv("DURATION_LIMIT", "7"))
ARQ_API_KEY = getenv("ARQ_API_KEY", None)
PMPERMIT = getenv("PMPERMIT", None)
Expand Down
2 changes: 1 addition & 1 deletion MusicBot/modules/msg.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import os
from MusicBot.config import SOURCE_CODE,ASSISTANT_NAME,PROJECT_NAME,SUPPORT_GROUP,UPDATES_CHANNEL
class Messages():
START_MSG = "**Hello 👋 [{}](tg://user?id={})!**\n\n🤖 I am an advanced bot created for playing music in the voice chats of Telegram Groups & Channels.\n\n✅ Send me /help for more info."
START_MSG = "**Hello 👋 [{}](tg://user?id={})!**\n\n🤖 I am an advanced bot created for playing music in the voice chats of Telegram Groups & Channels.\n\n✅ Send me /help for more info.\n\n🗣️Any Doubt @Mo_Tech_Group"
HELP_MSG = [
".",
f"""
Expand Down
7 changes: 0 additions & 7 deletions MusicBot/modules/pmpermit.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,3 @@
from MusicBot.services.callsmusic.callsmusic import client as USER


@USER.on_message(filters.text & filters.private & ~filters.me & ~filters.bot)
async def pmPermit(client: USER, message: Message):
await USER.send_message(
message.chat.id,
"**Hi there, This is a music assistant service @ZK_GvCBot.**\n\n ❗️ **Rules:**\n - No chatting allowed\n - No spam allowed \n\n 👉 **SEND GROUP INVITE LINK OR USERNAME IF USERBOT CAN'T JOIN YOUR GROUP.**\n\n **⚠️ Disclamer:** If you are sending a message here it means admin from @tgVCSets will see your message and join chat\n - Don't add this user to secret groups.\n - Don't Share private info here.\n\n**Feel Free to Contact Us @ZauteBot.**",
)
return
6 changes: 3 additions & 3 deletions MusicBot/modules/private.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def _start(client, message):
"➕ Add me to your Group ➕", url=f"https://t.me/{BOT_USERNAME}?startgroup=true")],
[
InlineKeyboardButton(
"📲 Updates", url=f"https://t.me/{UPDATES_CHANNEL}"),
"📲 Uodates", url=f"https://t.me/{UPDATES_CHANNEL}"),
InlineKeyboardButton(
"💬 Support", url=f"https://t.me/{SUPPORT_GROUP}")
],[
Expand All @@ -32,7 +32,7 @@ def _start(client, message):
@Client.on_message(filters.command("start") & ~filters.private & ~filters.channel)
async def gstart(_, message: Message):
await message.reply_text(
f"""**🔴 {PROJECT_NAME} is online**""",
f"""**🔴 {PROJECT_NAME} is online👀**""",
reply_markup=InlineKeyboardMarkup(
[
[
Expand Down Expand Up @@ -95,7 +95,7 @@ def map(pos):
@Client.on_message(filters.command("help") & ~filters.private & ~filters.channel)
async def ghelp(_, message: Message):
await message.reply_text(
f"""**🙋‍♀️ Hello there! I can play music in the voice chats of telegram groups & channels.**""",
f"""**🙋‍♀️ Hello I am abhina music bot! I can play music in the voice chats of telegram groups & channels.**""",
reply_markup=InlineKeyboardMarkup(
[
[
Expand Down
2 changes: 1 addition & 1 deletion MusicBot/modules/song.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def song(client, message):
info_dict = ydl.extract_info(link, download=False)
audio_file = ydl.prepare_filename(info_dict)
ydl.process_info(info_dict)
rep = "**🎵 Uploaded by *@ZKSongBot*"
rep = "**🎵 Uploaded by https://youtu.be/cPqLAcFXEfI"
secmul, dur, dur_arr = 1, 0, duration.split(":")
for i in range(len(dur_arr) - 1, -1, -1):
dur += int(dur_arr[i]) * secmul
Expand Down
144 changes: 111 additions & 33 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
### A bot that can play music on Telegram Group and Channel Voice Chats

<p align="center">
<a href="https://github.com/LushaiMusic/GroupMusicBot">
<img height="30px" src="https://img.shields.io/badge/Group%20Music%20Bot-red?style=for-the-badge&logo=github">
<a href="https://telegram.dog/MT_MusicPlayer_BoT">
<img height="30px" src="https://img.shields.io/badge/Group%20Music%20Bot Demo-red?style=for-the-badge&logo=github">
</a>
</p>

<p align="center">
<a href="https://telegra.ph/file/b569577a0593b51cd53ab.png">
<img height="150px" src="https://telegra.ph/file/b569577a0593b51cd53ab.png">
<a href="https://telegra.ph/file/81ebd8768d935ae8689bb.jpg">
<img height="150px" src="https://telegra.ph/file/81ebd8768d935ae8689bb.jpg">
</a>
</p>

Expand All @@ -19,32 +19,44 @@
Before clicking on deploy to heroku just click on fork and star just below

<p align="center">
<a href="https://github.com/LushaiMusic/GroupMusicBot/fork">
<img src="https://img.shields.io/github/forks/LushaiMusic/GroupMusicBot?label=Fork&style=social">
<a href="https://github.com/MRK-YT/MT-GroupMusic-Bot/fork">
<img src="https://img.shields.io/github/forks/MRK-YT/MT-GroupMusic-Bot?label=Fork&style=social">

</a>
<a href="https://github.com/LushaiMusic/GroupMusicBot">
<img src="https://img.shields.io/github/stars/LushaiMusic/GroupMusicBot?style=social">
<a href="https://github.com/MRK-YT/MT-GroupMusic-Bot">
<img src="https://img.shields.io/github/stars/MoTechYT/MT-GroupMusic-Bot?style=social">
</a>
</p>

## How to deploy

##
<details><summary>How to deploy</summary>
<p>
<br>
Click the below button to watch the video tutorial on deploying

<a href="https://youtu.be/koAzUgNQaDU"><img src="https://img.shields.io/badge/How%20To%20Deploy-blue.svg?logo=Youtube"></a>
<a href="https://youtu.be/koAzUgNQaDU"><img src="https://img.shields.io/youtube/views/koAzUgNQaDU?style=social">
<a href="https://youtu.be/kC6feIwmgY0"><img src="https://img.shields.io/badge/How%20To%20Deploy-blue.svg?logo=Youtube"></a>
<a href="https://youtu.be/kC6feIwmgY0"><img src="https://img.shields.io/youtube/views/kC6feIwmgY0?style=social">

### Deploy To Heroku 📡</h4>

<p align="center"><a href="https://heroku.com/deploy?template=https://github.com/LushaiMusic/GroupMusicBot"> <img src="https://img.shields.io/badge/Deploy%20To%20Heroku-blueviolet?style=for-the-badge&logo=heroku" width="210" height="34.45"/></a></p>
#### Deploy To Heroku
<p align="center"><a href="https://heroku.com/deploy?template=https://github.com/MRK-YT/MT-GroupMusic-Bot"> <img src="https://img.shields.io/badge/Deploy%20To%20Heroku-blueviolet?style=for-the-badge&logo=heroku" width="210" height="34.45"/></a></p>
</pre>
</p>
</details>

### GET STRING SESSION FROM REPL RUN

[![Run on Repl.it](https://camo.githubusercontent.com/05149b448485553c6f14f6430a45c12dcc79ed3c/68747470733a2f2f7265706c2e69742f62616467652f6769746875622f6a61727669733231303930342f4a6172766973)](https://replit.com/@ZauteKm/GenerateStringSession#main.py)
<details><summary>GET STRING SESSION FROM REPL RUN</summary>
<p>
<pre>

### Features✨
[![Run on Repl.it](https://camo.githubusercontent.com/05149b448485553c6f14f6430a45c12dcc79ed3c/68747470733a2f2f7265706c2e69742f62616467652f6769746875622f6a61727669733231303930342f4a6172766973)](https://replit.com/@ZauteKm/GenerateStringSession#main.py)
</pre>
</p>
</details>

<details><summary>Features✨</summary>
<p>
<pre>
- Thumbnail Support
- Playlist Support
- Current playback support
Expand All @@ -55,28 +67,42 @@ Click the below button to watch the video tutorial on deploying
- Control with buttons
- Userbot auto join
- Channel Music Play
### Requirements 📝
</pre>
</p>
</details>

<details><summary>Requirements 📝</summary>
<p>
<pre>

- FFmpeg
- NodeJS [nodesource.com](https://nodesource.com/)
- Python 3.7+
- [PyTgCalls](https://github.com/pytgcalls/pytgcalls)

### ⚔ Self-hosting (For Devs)
```sh
</pre>
</p>
</details>

<details><summary>Requirements 📝</summary>
<p>
<pre>
# Install Git First (apt-instll git)
$ git clone https://github.com/LushaiMusic/GroupMusicBot
$ cd GroupMusicBot
$ git clone https://github.com/MRK-YT/MT-GroupMusic-Bot
$ cd MT-GroupMusic-Bot
# Upgrade sources
# Install All Requirements
$ pip(3) install -r requirements.txt
# Rename example.env to local.env and fill
$ npm i -g npm
# Start Bot
$ python(3) -m MusicBot
```
</pre>
</p>
</details>

### Commands for Group 🛠
<details><summary>Commands for Group 🛠</summary>
<p>
<pre>
#### For all in group

- `/play <song name>` - play song you requested
Expand All @@ -90,8 +116,13 @@ $ python(3) -m MusicBot
- `/deezer <song name>` - download songs you want quickly via deezer
- `/saavn <song name>` - download songs you want quickly via saavn
- `/video <song name>` - download videos you want quickly
</pre>
</p>
</details>

#### Admins only.
<details><summary>Admins only</summary>
<p>
<pre>
- `/player` - open music player settings panel
- `/pause` - pause song play
- `/resume` - resume song play
Expand All @@ -100,8 +131,13 @@ $ python(3) -m MusicBot
- `/userbotjoin` - invite assistant to your chat
- `/userbotleave` - remove assistant from your chat
- `/reload` - Refresh admin list
</pre>
</p>
</details>

### Commands for Channel Music Play 🛠
<details><summary>Commands for Channel Music Play 🛠</summary>
<p>
<pre>
For linked group admins only:
- `/cplay <song name>` - play song you requested
- `/cplay <reply to audio>` - play replied file
Expand All @@ -120,20 +156,62 @@ For linked group admins only:
If you donlt like to play in linked channel:
1. Get your channel ID.
2. Rename your group to: Channel Music: your_channel_id
3. Add @ZK_GvCBot as Channel admin with full perms
4. add helper to channel
5. Simply send commands in your group.
3. Simply send commands in your group.
</pre>
</p>
</details>

### Commands for Sudo Users ⚔️
<details><summary>Commands for Sudo Users ⚔️</summary>
<p>
<pre>
- `/userbotleaveall` - remove assistant from all chats
- `/gcast <reply to message>` - globally brodcast replied message to all chats
- `/pmpermit [on/off]` - enable/disable pmpermit message
</pre>
</p>
</details>

#### Pmpermit
<details><summary>Pmpermit</summary>
<p>
<pre>
- `.a` - approove someone to pm you
- `.da` - disapproove someone to pm you
+ Sudo Users can execute any command in any groups
</pre>
</p>
</details>

### Credits
<details><summary>Credits</summary>
<p>
<pre>
#### Special Credits

- [Rojserbest](http://github.com/rojserbes): Callsmusic Developer


#### Editing....
<img src="https://telegra.ph/file/9e831d15da94deb56ef4c.jpg" width="200" height="200"><br>
<img src="https://badgen.net/badge/Name/Mrk YT/FF33FF?icon=awesome&labelColor=0080FF"></a>
<img src="https://badgen.net/badge/Skills/😞/purple?icon=terminal&labelColor=red"></a>
<a href="https://telegram.dog/MRK_yt"><img src="https://img.shields.io/badge/Telegram-Link-blue.svg?logo=telegram"></a>
<a href="https://github.com/MRK-YT"><img src="https://badgen.net/badge/Follow%20on%20/Github/80FF00?icon=github&labelColor=black"></a>
<a href="https://youtube.com/channel/UCmGBpXoM-OEm-FacOccVKgQ"><img src="https://img.shields.io/badge/YouTube-Channel-FF3333.svg?logo=youtube&logoColor=FF3333"></a>
<a href="https://Instagram.com/mrk_yt_"><img src="https://badgen.net/badge/Follow%20on%20/Instagram/80FF00?icon=Instagram&labelColor=black"></a>


[![Open Source? Yes!](https://badgen.net/badge/Oᴘᴇɴ%20Sᴏᴜʀᴄᴇ%20%3F/Yᴇs/yellow?icon=github)](https://github.com/MRK-YT/Pro-Auto-Filter-Bot-V2)
[![Ask Me Anything !](https://img.shields.io/badge/🤔%20Ask%20Me-Anything-1abc9c.svg)](https://telegram.dog/Mrk_Yt)
[![Report Bugs!](https://badgen.net/badge/🐞%20Report%20/Bugs/red)](https://telegram.dog/mrk_yt)
[![Join Channel !](https://badgen.net/badge/🔊%20Join%20/Channel/Black)](https://telegram.dog/mo_Tech_yt)

Join Our [Telegram Group](https://www.telegram.dog/Mo_Tech_Group) For Support/Assistance And Our [Channel](https://www.telegram.dog/Mo_Tech_YT) For Updates.

Report Bugs, Give Feature Requests There..
Do Fork And Star The Repository If You Liked It.
</pre>
</p>
</details>




30 changes: 15 additions & 15 deletions app.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Group Music Bot",
"logo": "https://telegra.ph/file/b569577a0593b51cd53ab.png",
"logo": "https://telegra.ph/file/e62e75453eeedad35a189.jpg",
"description": "Open-Source bot to play songs in your Telegram's Group Voice Chat. Powered by PyTgCalls.",
"keywords": ["music", "voicechat", "telegram"],
"repository": "https://github.com/LushaiMusic/GroupMusicBot",
Expand All @@ -24,49 +24,49 @@
"value": ""
},
"SUPPORT_GROUP": {
"description": "Your MusicPlayer support group without @ [Leave this if you don't have one]",
"description": "Your MusicPlayer support group without @ [Leave this if you don't have one](Mo_Tech_Group)",
"required": false,
"value": "tgVCSets"
"value": "Mo_Tech_Group"
},
"PROJECT_NAME": {
"description": "Your MusicPlayer project Name.",
"description": "Your MusicPlayer project Name {MT Music Bog V4}.",
"required": false,
"value": "Music Bot v4"
"value": "MT Music Bot v4"
},
"ASSISTANT_NAME": {
"description": "Your MusicPlayer's assistant Username without @.",
"description": "Your MusicPlayer's assistant Username without @ {MRK-YT}.",
"required": true
},
"ARQ_API_KEY": {
"description": "Get from @ARQRobot.",
"required": false,
"value": "GUGFNB-XPUZDX-XGCKTJ-UZXHBZ-ARQ"
"value": ""
},
"BG_IMAGE": {
"description": "BG image of bot (Use transparent one) [IGNORE].",
"description": "BG image of bot @MT_Telegraph_BoT",
"required": false,
"value": " https://telegra.ph/file/e8ef50ce40d228a5fde80.png"
"value": "https://telegra.ph/file/e62e75453eeedad35a189.jpg"
},
"UPDATES_CHANNEL": {
"description": "Updates Channel without @ [Leave this if you don't have one].",
"description": "Updates Channel without @ [Leave this if you don't have one]{Mo_Tech_YT}",
"required": false,
"value": "ZauteKm"
"value": "Mo_Tech_YT"
},
"API_ID": {
"description": "App ID from my.telegram.org/apps",
"description": "App ID from my.telegram.org/apps or @MT_MyTelegramOrg_Bot",
"required": true
},
"PMPERMIT": {
"description": "Change to turn off",
"description": "Change to turn off {ENABLE}",
"required": false,
"value": "ENABLE"
},
"API_HASH": {
"description": "App hash from my.telegram.org/apps",
"description": "App hash from my.telegram.org/apps or @MT_MyTelegramOrg_Bot",
"required": true
},
"SUDO_USERS": {
"description": "List of user IDs counted as admin everywhere (separated by space).",
"description": "List of user IDs counted as admin everywhere (separated by space) @MT_SHOWJSON_BOT",
"required": true
},
"DURATION_LIMIT": {
Expand Down