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 - +## +
+
Click the below button to watch the video tutorial on deploying
-
-
+
+
-### Deploy To Heroku π‘
-
+#### Deploy To Heroku
+
+
+
+
-### Features⨠+[](https://replit.com/@ZauteKm/GenerateStringSession#main.py) ++ +
+
- 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 π ++ +
+
- FFmpeg - NodeJS [nodesource.com](https://nodesource.com/) - Python 3.7+ - [PyTgCalls](https://github.com/pytgcalls/pytgcalls) - -### β Self-hosting (For Devs) -```sh ++ +
+
# 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 -``` ++ +
+
#### 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 +
+
- `/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 ++ +
+
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. +
+
- `/userbotleaveall` - remove assistant from all chats - `/gcast+ +` - globally brodcast replied message to all chats - `/pmpermit [on/off]` - enable/disable pmpermit message +
+
- `.a` - approove someone to pm you - `.da` - disapproove someone to pm you + Sudo Users can execute any command in any groups ++ +
+
#### Special Credits + - [Rojserbest](http://github.com/rojserbes): Callsmusic Developer + + +#### Editing.... ++ +
++
+
+
+
+
+ + +[](https://github.com/MRK-YT/Pro-Auto-Filter-Bot-V2) +[](https://telegram.dog/Mrk_Yt) +[](https://telegram.dog/mrk_yt) +[](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. +