diff --git a/MusicBot/config.py b/MusicBot/config.py index 91924df..0751739 100644 --- a/MusicBot/config.py +++ b/MusicBot/config.py @@ -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) diff --git a/MusicBot/modules/msg.py b/MusicBot/modules/msg.py index fbd5231..e9594d9 100644 --- a/MusicBot/modules/msg.py +++ b/MusicBot/modules/msg.py @@ -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""" diff --git a/MusicBot/modules/pmpermit.py b/MusicBot/modules/pmpermit.py index dc5428a..308c616 100644 --- a/MusicBot/modules/pmpermit.py +++ b/MusicBot/modules/pmpermit.py @@ -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 diff --git a/MusicBot/modules/private.py b/MusicBot/modules/private.py index 828ec62..465b724 100644 --- a/MusicBot/modules/private.py +++ b/MusicBot/modules/private.py @@ -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}") ],[ @@ -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( [ [ @@ -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( [ [ diff --git a/MusicBot/modules/song.py b/MusicBot/modules/song.py index 14d725f..e136419 100644 --- a/MusicBot/modules/song.py +++ b/MusicBot/modules/song.py @@ -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 diff --git a/README.md b/README.md index e69bc55..12e7ccd 100644 --- a/README.md +++ b/README.md @@ -3,14 +3,14 @@ ### A bot that can play music on Telegram Group and Channel Voice Chats

- - + +

- - + +

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

- - + + - - + +

-## How to deploy - +## +
How to deploy +

+
Click the below button to watch the video tutorial on deploying - - + + -### Deploy To Heroku πŸ“‘ -

+#### Deploy To Heroku +

+ +

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

+

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

+
+
Features✨ +

+

 - Thumbnail Support
 - Playlist Support
 - Current playback support
@@ -55,18 +67,28 @@ Click the below button to watch the video tutorial on deploying
 - Control with buttons
 - Userbot auto join
 - Channel Music Play
-### Requirements πŸ“
+
+

+
+ +
Requirements πŸ“ +

+

 
 - FFmpeg
 - NodeJS [nodesource.com](https://nodesource.com/)
 - Python 3.7+
 - [PyTgCalls](https://github.com/pytgcalls/pytgcalls)
-
-### βš” Self-hosting (For Devs) 
-```sh
+
+

+
+ +
Requirements πŸ“ +

+

 # 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
@@ -74,9 +96,13 @@ $ pip(3) install -r requirements.txt
 $ npm i -g npm
 # Start Bot 
 $ python(3) -m MusicBot
-```
+
+

+
-### Commands for Group πŸ›  +
Commands for Group πŸ›  +

+

 #### For all in group
 
 - `/play ` - play song you requested
@@ -90,8 +116,13 @@ $ python(3) -m MusicBot
 - `/deezer ` - download songs you want quickly via deezer
 - `/saavn ` - download songs you want quickly via saavn
 - `/video ` - download videos you want quickly
+
+

+
-#### Admins only. +
Admins only +

+

 - `/player` - open music player settings panel
 - `/pause` - pause song play
 - `/resume` - resume song play
@@ -100,8 +131,13 @@ $ python(3) -m MusicBot
 - `/userbotjoin` - invite assistant to your chat
 - `/userbotleave` - remove assistant from your chat
 - `/reload` - Refresh admin list
+
+

+
-### Commands for Channel Music Play πŸ›  +
Commands for Channel Music Play πŸ›  +

+

 For linked group admins only:
 - `/cplay ` - play song you requested
 - `/cplay ` - play replied file
@@ -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.
+
+

+
-### Commands for Sudo Users βš”οΈ +
Commands for Sudo Users βš”οΈ +

+

 - `/userbotleaveall` - remove assistant from all chats
 - `/gcast ` - globally brodcast replied message to all chats
 - `/pmpermit [on/off]` - enable/disable pmpermit message
+
+

+
-#### Pmpermit +
Pmpermit +

+

 - `.a` - approove someone to pm you
 - `.da` - disapproove someone to pm you
 + Sudo Users can execute any command in any groups
+
+

+
-### Credits +
Credits +

+

 #### Special Credits
+
 - [Rojserbest](http://github.com/rojserbes): Callsmusic Developer
+
+
+#### Editing....                                                          
+
+ + + + + + + + +[![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. +
+

+
+ + + + diff --git a/app.json b/app.json index c926b3c..816e179 100644 --- a/app.json +++ b/app.json @@ -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", @@ -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": {