diff --git a/Readme.md b/Readme.md index 0fcf229c..3f718926 100644 --- a/Readme.md +++ b/Readme.md @@ -5,16 +5,16 @@ # quicktriviav4👮 -💡 This is Innexia An Advanced Telegram CHAT Bot For Best AI Experience made by aditya !! 🤖 +💡 This is Innexia An Advanced Telegram CHAT Bot For Best AI Experience made by AXEL!! 🤖 -![logo](https://telegra.ph/file/a2bf8c1ae3e2c247a23fa.jpg) -# 💡Dᴇᴠᴇʟᴏᴩᴇᴍᴇɴᴛ•Sᴜᴩᴩᴏʀᴛ👥[Here !](https://t.me/v4updatesdiscussion) +![logo](https://https://telegra.ph/file/63667b69b432653bd1683.jpg) +# 💡Dᴇᴠᴇʟᴏᴩᴇᴍᴇɴᴛ•Sᴜᴩᴩᴏʀᴛ👥[Here !](https://t.me/AXEL_SUPPORT) -## Me On Telegram As [💥 aditya 💥](https://t.me/aboutmeaditya) +## Me On Telegram As [💥 AXEL 💥](https://t.me/SURAJ_O_P) ## Cᴏᴍᴍᴀɴᴅs ``` -->Music•Player<- by aditya +->Music•Player<- by AXEL =>> *Song Playing* 🎧 ❍ /play - play song you requested ❍ /dplay - play song you requested via deezer @@ -43,6 +43,6 @@ ## DEPLOY ON HEROKU 🚀 -

Heroku

+

Heroku

diff --git a/modules/Private.py b/modules/Private.py index 6297f140..7e22fd80 100644 --- a/modules/Private.py +++ b/modules/Private.py @@ -1,71 +1,49 @@ - -from pyrogram.types import InlineKeyboardMarkup, InlineKeyboardButton from pyrogram import Client, filters -import signal -import os -import sys - - -HOME_TEXT = "Helo, [{}](tg://user?id={})\n\n• Iam A Bot Project made by @Sadlife\n# my group @quicktrivia\n• I Can Manage Group VC's\n\n• Hit /help to know about available commands." -HELP = """ -🎧 I Can Play Musics On VoiceChats 🤪 - -🎶 **Common Commands**:by @Sadlife56 or aditya -• `/song` __Download Song from youtube__ -• `/play` __Play song you requested__ -• `/help` __Show help for commands__ -• `/dplay` __Play song you requested via deezer__ -• `splay` __Play song you requested via jio saavn__ -• `/ytplay` __Play song directly from youtube server__ -• `/search` __Search video songs links__ -• `/current` __Show now playing__ -• `/playlist` __Show now playing list__ -• `/video` __Downloads video song quickly__ -🎶 **Admin Commands**:*aditya, tushar, lucky, harsh, utkarsh, sg* -• `/player` __Open music player settings panel__ -• `/pause` __Pause song play__ -• `/skip` __Skip next song__ -• `/resume` __Resume song play__ -• `/userbotjoin` __Invites assistant to your chat__ -• `/end` __Stops music play__ -• `/admincache` __Refresh list of admins with vc power__ -© Powered By -[ __@quicltrivia || @Sadlife56__ ] -""" - - - -@Client.on_message(filters.command('start')) -async def start(client, message): - buttons = [ - [ - InlineKeyboardButton('📢 Updates', url='https://t.me/v4updates'), - InlineKeyboardButton('💬 Support', url='https://t.me/v4updatesdiscussion') - ],[ - InlineKeyboardButton('🤖 Developer', url='https://t.me/aboutmeaditya'), - InlineKeyboardButton('🎧 Chats', url='https://t.me/quicktrivia') - ],[ - InlineKeyboardButton('📜 Source Code 📜', url='https://telegra.ph/file/776826cc26ba5897a9ec2.mp4'), - ] - ] - reply_markup = InlineKeyboardMarkup(buttons) - await message.reply_photo(photo="https://telegra.ph/file/cd1c80751b6c75a655b1d.jpg", caption=HOME_TEXT.format(message.from_user.first_name, message.from_user.id), reply_markup=reply_markup) - await message.delete() +from pyrogram.types import Message, InlineKeyboardMarkup, InlineKeyboardButton + + +from helpers.filters import other_filters2 + + +@Client.on_message(other_filters2) +async def start(_, message: Message): + await message.reply_photo("https://telegra.ph/file/5993e1a643d3986a27d9e.jpg") + await message.reply_text( + f"""**Hey, I'm AXEL 😊🎵 + +I can play ꬺᶙȿᶖɕ in your group's voice CHAT Developed by [Axel](https://t.me/suraj_o_p) + +Add me to your group and play music freely😆!** + """, + reply_markup=InlineKeyboardMarkup( + [ + [ + InlineKeyboardButton( + "Oᴡɴᴇʀ", url="https://t.me/suraj_o_p") + ],[ + InlineKeyboardButton( + "🛡 SUPPORT GROUP 🛡", url="https://t.me/AXEL_SUPPORT" + ), + ],[ + InlineKeyboardButton( + "ADD ME TO YOUR GROUP😉", url="https://t.me/AXEL_MUSICBOT?startgroup=true" + )] + ] + ), + disable_web_page_preview=True + ) + +@Client.on_message(filters.command("start") & ~filters.private & ~filters.channel) +async def gstart(_, message: Message): + await message.reply_text("""**AXELMUSIC BOT IS WORKING**""", + reply_markup=InlineKeyboardMarkup( + [ + [ + InlineKeyboardButton( + "📚 COMMANDS 📚", url="https://t.me/AXEL_SUPPPORTXD/24") + ] + ] + ) + ) -@Client.on_message(filters.command("help")) -async def show_help(client, message): - buttons = [ - [ - InlineKeyboardButton('📢 Updates', url='https://t.me/v4updates'), - InlineKeyboardButton('💬 Support', url='https://t.me/v4updatesdiscussion') - ],[ - InlineKeyboardButton('🤖 Developer', url='https://t.me/aboutmeaditya'), - InlineKeyboardButton('🎧 Chats', url='https://t.me/quicktrivia') - ],[ - InlineKeyboardButton('📜 Source Code 📜', url='https://telegra.ph/file/776826cc26ba5897a9ec2.mp4'), - ] - ] - reply_markup = InlineKeyboardMarkup(buttons) - await message.reply_photo(photo="https://telegra.ph/file/cd1c80751b6c75a655b1d.jpg", caption=HELP, reply_markup=reply_markup) - await message.delete() diff --git a/modules/admins.py b/modules/admins.py index 393d374e..c4f79815 100644 --- a/modules/admins.py +++ b/modules/admins.py @@ -35,7 +35,7 @@ async def pause(_, message: Message): await message.reply_text("❗ Nothing is playing!") else: callsmusic.pytgcalls.pause_stream(chat_id) - await message.reply_text("lo beta kar diya PAUSE") + await message.reply_text("SUCCESSFULLY PAUSED ") @Client.on_message(command("resume") & other_filters) @@ -49,7 +49,7 @@ async def resume(_, message: Message): await message.reply_text("abe kuch pause nahi hai ") else: callsmusic.pytgcalls.resume_stream(chat_id) - await message.reply_text("⏸ lo beta kar diya Resumed!") + await message.reply_text("⏸ Successfully Resumed!") @Client.on_message(command("end") & other_filters) @@ -58,7 +58,7 @@ async def resume(_, message: Message): async def stop(_, message: Message): chat_id = get_chat_id(message.chat) if chat_id not in callsmusic.pytgcalls.active_calls: - await message.reply_text("❗ abe sun kuch nahi play ho rha toa stop kya karu") + await message.reply_text("❗NOTHING IS STREAMING HERE") else: try: callsmusic.queues.clear(chat_id) @@ -66,7 +66,7 @@ async def stop(_, message: Message): pass callsmusic.pytgcalls.leave_group_call(chat_id) - await message.reply_text("❌ ok stop kar diya lakin beta mere se panga leke thik nahi kiya tune") + await message.reply_text("❌ END") @Client.on_message(command("skip") & other_filters) @@ -76,7 +76,7 @@ async def skip(_, message: Message): global que chat_id = get_chat_id(message.chat) if chat_id not in callsmusic.pytgcalls.active_calls: - await message.reply_text("❗ abe sun kuch play nahi ho rha VC mai toa skip kya karu!") + await message.reply_text("❗ STOP STREAMING!") else: callsmusic.queues.task_done(chat_id) @@ -105,4 +105,4 @@ async def admincache(client, message: Message): for member in await message.chat.get_members(filter="administrators") ], ) - await message.reply_text("❇️ chal beta kar diya reload admin list ko") + await message.reply_text("❇️ RELOADED✅") diff --git a/modules/gcast.py b/modules/gcast.py new file mode 100644 index 00000000..2fee47b5 --- /dev/null +++ b/modules/gcast.py @@ -0,0 +1,37 @@ + +import asyncio + +from pyrogram import Client, filters +from pyrogram.types import Message + +from config import SUDO_USERS +from services.callsmusic.callsmusic import client as USER + + +@Client.on_message(filters.command(["broadcast"])) +async def broadcast(_, message: Message): + sent = 0 + failed = 0 + if message.from_user.id not in SUDO_USERS: + return + else: + wtf = await message.reply("`Starting a broadcast...`") + if not message.reply_to_message: + await wtf.edit("Please Reply to a Message to broadcast!") + return + lmao = message.reply_to_message.text + async for dialog in USER.iter_dialogs(): + try: + await USER.send_message(dialog.chat.id, lmao) + sent = sent + 1 + await wtf.edit( + f"`broadcasting...` \n\n**Sent to:** `{sent}` Chats \n**Failed in:** {failed} Chats" + ) + await asyncio.sleep(3) + except: + failed = failed + 1 + # await wtf.edit(f"`broadcasting...` \n\n**Sent to:** `{sent}` Chats \n**Failed in:** {failed} Chats") + + await message.reply_text( + f"`Broadcast Finished ` \n\n**Sent to:** `{sent}` Chats \n**Failed in:** {failed} Chats" + ) diff --git a/modules/play.py b/modules/play.py index 0b96cf60..f1c4c179 100644 --- a/modules/play.py +++ b/modules/play.py @@ -178,7 +178,7 @@ def r_ply(type_): [ InlineKeyboardButton("Playlist 📖", "playlist"), ], - [InlineKeyboardButton("❌ Close", "cls")], + [InlineKeyboardButton("🗑 Close", "cls")], ] ) return mar @@ -294,7 +294,7 @@ async def p_cb(b, cb): @Client.on_callback_query( - filters.regex(pattern=r"^(play|pause|skip|leave|puse|resume|menu|cls)$") + filters.regex(pattern=r"^(yplay|pause|skip|leave|puse|resume|menu|cls)$") ) @cb_admin_check async def m_cb(b, cb): @@ -325,7 +325,7 @@ async def m_cb(b, cb): updated_stats(m_chat, qeue), reply_markup=r_ply("play") ) - elif type_ == "play": + elif type_ == "yplay": if (chet_id not in callsmusic.pytgcalls.active_calls) or ( callsmusic.pytgcalls.active_calls[chet_id] == "playing" ): @@ -395,7 +395,7 @@ async def m_cb(b, cb): [ InlineKeyboardButton("Playlist 📖", "playlist"), ], - [InlineKeyboardButton("❌ Close", "cls")], + [InlineKeyboardButton("🗑 Close", "cls")], ] ) await cb.message.edit(stats, reply_markup=marr) @@ -434,7 +434,7 @@ async def m_cb(b, cb): await cb.answer("Chat is not connected!", show_alert=True) -@Client.on_message(command("play") & other_filters) +@Client.on_message(command("yplay") & other_filters) async def play(_, message: Message): global que global useer @@ -522,7 +522,7 @@ async def play(_, message: Message): if audio: if round(audio.duration / 60) > DURATION_LIMIT: raise DurationLimitError( - f"❌ Videos longer than {DURATION_LIMIT} minute(s) aren't allowed to play!" + f"😅 Videos longer than {DURATION_LIMIT} minute(s) aren't allowed to play!" ) keyboard = InlineKeyboardMarkup( [ @@ -530,12 +530,12 @@ async def play(_, message: Message): InlineKeyboardButton("📖 Playlist", callback_data="playlist"), InlineKeyboardButton("Menu ⏯ ", callback_data="menu"), ], - [InlineKeyboardButton(text="❌ Close", callback_data="cls")], + [InlineKeyboardButton(text="🗑 Close", callback_data="cls")], ] ) file_name = get_file_name(audio) title = file_name - thumb_name = "https://telegra.ph/file/f6086f8909fbfeb0844f2.png" + thumb_name = "https://telegra.ph/file/613d2a43bbb508af05fd6.jpg" thumbnail = thumb_name duration = round(audio.duration / 60) views = "Locally added" @@ -574,10 +574,10 @@ async def play(_, message: Message): keyboard = InlineKeyboardMarkup( [ [ - InlineKeyboardButton(text="🎬 YouTube", url=f"{url}"), - InlineKeyboardButton(text="Download 📥", url=f"{dlurl}"), + InlineKeyboardButton(text="🎥 YouTube", url=f"{url}"), + InlineKeyboardButton(text="JOIN", url="https://t.me/AXEL_SUPPORT"), ], - [InlineKeyboardButton(text="❌ Close", callback_data="cls")], + [InlineKeyboardButton(text="🗑 Close", callback_data="cls")], ] ) requested_by = message.from_user.first_name @@ -600,7 +600,7 @@ async def play(_, message: Message): toxxt = "**Select the song you want to play**\n\n" j = 0 useer=user_name - emojilist = ["1️⃣","2️⃣","3️⃣","4️⃣","5️⃣",] + emojilist = ["1","2","3","4","5",] while j < 5: toxxt += f"{emojilist[j]} **Title - [{results[j]['title']}](https://youtube.com{results[j]['url_suffix']})**\n" @@ -612,15 +612,15 @@ async def play(_, message: Message): koyboard = InlineKeyboardMarkup( [ [ - InlineKeyboardButton("1️⃣", callback_data=f'plll 0|{query}|{user_id}'), - InlineKeyboardButton("2️⃣", callback_data=f'plll 1|{query}|{user_id}'), - InlineKeyboardButton("3️⃣", callback_data=f'plll 2|{query}|{user_id}'), + InlineKeyboardButton("1", callback_data=f'plll 0|{query}|{user_id}'), + InlineKeyboardButton("2", callback_data=f'plll 1|{query}|{user_id}'), + InlineKeyboardButton("3", callback_data=f'plll 2|{query}|{user_id}'), ], [ - InlineKeyboardButton("4️⃣", callback_data=f'plll 3|{query}|{user_id}'), - InlineKeyboardButton("5️⃣", callback_data=f'plll 4|{query}|{user_id}'), + InlineKeyboardButton("4", callback_data=f'plll 3|{query}|{user_id}'), + InlineKeyboardButton("5", callback_data=f'plll 4|{query}|{user_id}'), ], - [InlineKeyboardButton(text="Close 🛑", callback_data="cls")], + [InlineKeyboardButton(text="Close 🗑", callback_data="cls")], ] ) await lel.edit(toxxt,reply_markup=koyboard,disable_web_page_preview=True) @@ -653,14 +653,10 @@ async def play(_, message: Message): keyboard = InlineKeyboardMarkup( [ [ - InlineKeyboardButton("📖 Playlist", callback_data="playlist"), - InlineKeyboardButton("Menu ⏯ ", callback_data="menu"), + InlineKeyboardButton(text="🎥 YouTube", url=f"{url}"), + InlineKeyboardButton(text="JOIN", url=f"https://t.me/AXEL_SUPPORT"), ], - [ - InlineKeyboardButton(text="🎬 YouTube", url=f"{url}"), - InlineKeyboardButton(text="Download 📥", url=f"{dlurl}"), - ], - [InlineKeyboardButton(text="❌ Close", callback_data="cls")], + [InlineKeyboardButton(text="🗑Close", callback_data="cls")], ] ) requested_by = message.from_user.first_name @@ -707,7 +703,7 @@ async def play(_, message: Message): return await lel.delete() -@Client.on_message(filters.command("ytplay") & filters.group & ~filters.edited) +@Client.on_message(filters.command("play") & filters.group & ~filters.edited) async def ytplay(_, message: Message): global que if message.chat.id in DISABLED_GROUPS: @@ -801,10 +797,10 @@ async def ytplay(_, message: Message): keyboard = InlineKeyboardMarkup( [ [ - InlineKeyboardButton(text="🎬 YouTube", url=f"{url}"), - InlineKeyboardButton(text="Download 📥", url=f"{dlurl}"), + InlineKeyboardButton(text="🎥 YouTube", url=f"{url}"), + InlineKeyboardButton(text="JOIN", url=f"https://t.me/AXEL_SUPPORT"), ], - [InlineKeyboardButton(text="❌ Close", callback_data="cls")], + [InlineKeyboardButton(text="🗑 Close", callback_data="cls")], ] ) requested_by = message.from_user.first_name @@ -843,7 +839,7 @@ async def ytplay(_, message: Message): await message.reply_photo( photo="final.png", reply_markup=keyboard, - caption="▶️ **Playing** here the song requested by {} via Youtube Music 😜".format( + caption="🎥 **Playing** here the song requested by {} via Youtube Music 😉 join @AXEL_SUPPORT".format( message.from_user.mention() ), ) @@ -861,7 +857,7 @@ async def deezer(client: Client, message_: Message): try: user = await USER.get_me() except: - user.first_name = "DaisyMusic" + user.first_name = "Music" usar = user wew = usar.id try: @@ -914,7 +910,7 @@ async def deezer(client: Client, message_: Message): queryy = text[1] query = queryy res = lel - await res.edit(f"Searching 👀👀👀 for `{queryy}` on deezer") + await res.edit(f"Searching for `{queryy}` on faltu server son nhi play hoga") try: songs = await arq.deezer(query,1) if not songs.ok: @@ -944,7 +940,7 @@ async def deezer(client: Client, message_: Message): InlineKeyboardButton("Menu ⏯ ", callback_data="menu"), ], [InlineKeyboardButton(text="Listen On Deezer 🎬", url=f"{url}")], - [InlineKeyboardButton(text="❌ Close", callback_data="cls")], + [InlineKeyboardButton(text="🗑 Close", callback_data="cls")], ] ) file_path = await convert(wget.download(url)) @@ -988,7 +984,7 @@ async def deezer(client: Client, message_: Message): os.remove("final.png") -@Client.on_message(filters.command("splay") & filters.group & ~filters.edited) +@Client.on_message(filters.command("aplay") & filters.group & ~filters.edited) async def jiosaavn(client: Client, message_: Message): global que if message_.chat.id in DISABLED_GROUPS: @@ -1024,7 +1020,7 @@ async def jiosaavn(client: Client, message_: Message): try: await USER.join_chat(invitelink) await USER.send_message( - message_.chat.id, "I joined this group for playing music in VC" + message_.chat.id, "I joined this group for playing music 🎶 in VC" ) await lel.edit( "helper userbot joined your chat", @@ -1036,7 +1032,7 @@ async def jiosaavn(client: Client, message_: Message): # print(e) await lel.edit( f"🔴 Flood Wait Error 🔴 \nUser {user.first_name} couldn't join your group due to heavy requests for userbot! Make sure user is not banned in group." - "\n\nOr manually add @patriciaXmusic to your Group and try again", + "\n\nOr manually add ASSISTANCE to your Group and try again", ) try: await USER.get_chat(chid) @@ -1051,7 +1047,7 @@ async def jiosaavn(client: Client, message_: Message): text = message_.text.split(" ", 1) query = text[1] res = lel - await res.edit(f"Searching 👀👀👀 for `{query}` on jio saavn") + await res.edit(f"Searching for `{query}` on private server") try: songs = await arq.saavn(query) if not songs.ok: @@ -1074,17 +1070,13 @@ async def jiosaavn(client: Client, message_: Message): except: pass keyboard = InlineKeyboardMarkup( - [ - [ - InlineKeyboardButton("📖 Playlist", callback_data="playlist"), - InlineKeyboardButton("Menu ⏯ ", callback_data="menu"), - ], + [ [ InlineKeyboardButton( - text="Join Updates Channel", url=f"https://t.me/{updateschannel}" + text="JOIN", url=f"https://t.me/AXEL_SUPPORT" ) ], - [InlineKeyboardButton(text="❌ Close", callback_data="cls")], + [InlineKeyboardButton(text="🗑 Close", callback_data="cls")], ] ) file_path = await convert(wget.download(slink)) @@ -1102,11 +1094,11 @@ async def jiosaavn(client: Client, message_: Message): chat_id=message_.chat.id, reply_markup=keyboard, photo="final.png", - caption=f"✯{bn}✯=#️⃣ Queued at position {position}", + caption=f"✯{bn}✯=#️⃣ Queued at position {position} join @AXEL_SUPPORT_INFO", ) else: - await res.edit_text(f"{bn}=▶️ Playing.....") + await res.edit_text(f"{bn}=▶️ Playing..... join @AXEL_SUPPPORTXD_INFO") que[chat_id] = [] qeue = que.get(chat_id) s_name = sname @@ -1126,7 +1118,7 @@ async def jiosaavn(client: Client, message_: Message): chat_id=message_.chat.id, reply_markup=keyboard, photo="final.png", - caption=f"Playing {sname} Via Jiosaavn", + caption=f"Playing {sname} by AXEL", ) os.remove("final.png") @@ -1182,10 +1174,10 @@ async def lol_cb(b, cb): keyboard = InlineKeyboardMarkup( [ [ - InlineKeyboardButton(text="🎬 YouTube", url=f"{url}"), - InlineKeyboardButton(text="Download 📥", url=f"{dlurl}"), + InlineKeyboardButton(text="🎥 YouTube", url=f"{url}"), + InlineKeyboardButton(text="JOIN", url=f"https://t.me/AXEL_SUPPORT"), ], - [InlineKeyboardButton(text="❌ Close", callback_data="cls")], + [InlineKeyboardButton(text="🗑 Close", callback_data="cls")], ] ) requested_by = useer_name @@ -1205,7 +1197,7 @@ async def lol_cb(b, cb): await cb.message.delete() await b.send_photo(chat_id, photo="final.png", - caption=f"#⃣ Song requested by {r_by.mention} **queued** at position {position}!", + caption=f"#⃣ Song requested by {r_by.mention} **queued** at position {position}! Join @AXEL_SUPPORT", reply_markup=keyboard, ) os.remove("final.png") diff --git a/modules/userbotjoin.py b/modules/userbotjoin.py index c3063ff4..c86b38ca 100644 --- a/modules/userbotjoin.py +++ b/modules/userbotjoin.py @@ -35,7 +35,7 @@ async def addchannel(client, message): print(e) await message.reply_text( f"🛑 Flood Wait Error 🛑 \n User {user.first_name} couldn't join your group due to heavy join requests for userbot! Make sure user is not banned in group." - "\n\nOr manually add @patriciaXmusic to your Group and try again", + "\n\nOr manually add ASSISTANCE to your Group and try again", ) return await message.reply_text( @@ -96,7 +96,7 @@ async def addcchannel(client, message): try: user = await USER.get_me() except: - user.first_name = "DaisyMusic" + user.first_name = "AXELMusic" try: await USER.join_chat(invitelink) @@ -110,7 +110,7 @@ async def addcchannel(client, message): print(e) await message.reply_text( f"🛑 Flood Wait Error 🛑 \n User {user.first_name} couldn't join your channel due to heavy join requests for userbot! Make sure user is not banned in channel." - "\n\nOr manually add @PatriciaXmusic to your Group and try again", + "\n\nOr manually add ASSISTANCE to your Group and try again", ) return await message.reply_text(