Update DragMusic/plugins/play/play.py
Browse files- DragMusic/plugins/play/play.py +12 -12
DragMusic/plugins/play/play.py
CHANGED
@@ -6,22 +6,22 @@ from pyrogram.types import InlineKeyboardMarkup, InputMediaPhoto, Message
|
|
6 |
from pytgcalls.exceptions import NoActiveGroupCall
|
7 |
|
8 |
import config
|
9 |
-
from
|
10 |
-
from
|
11 |
-
from
|
12 |
-
from
|
13 |
-
from
|
14 |
-
from
|
15 |
-
from
|
16 |
-
from
|
17 |
botplaylist_markup,
|
18 |
livestream_markup,
|
19 |
playlist_markup,
|
20 |
slider_markup,
|
21 |
track_markup,
|
22 |
)
|
23 |
-
from
|
24 |
-
from
|
25 |
from config import BANNED_USERS, lyrical
|
26 |
|
27 |
|
@@ -508,8 +508,8 @@ async def play_music(client, CallbackQuery, _):
|
|
508 |
return await mystic.delete()
|
509 |
|
510 |
|
511 |
-
@app.on_callback_query(filters.regex("
|
512 |
-
async def
|
513 |
try:
|
514 |
await CallbackQuery.answer(
|
515 |
"» ʀᴇᴠᴇʀᴛ ʙᴀᴄᴋ ᴛᴏ ᴜsᴇʀ ᴀᴄᴄᴏᴜɴᴛ :\n\nᴏᴘᴇɴ ʏᴏᴜʀ ɢʀᴏᴜᴘ sᴇᴛᴛɪɴɢs.\n-> ᴀᴅᴍɪɴɪsᴛʀᴀᴛᴏʀs\n-> ᴄʟɪᴄᴋ ᴏɴ ʏᴏᴜʀ ɴᴀᴍᴇ\n-> ᴜɴᴄʜᴇᴄᴋ ᴀɴᴏɴʏᴍᴏᴜs ᴀᴅᴍɪɴ ᴘᴇʀᴍɪssɪᴏɴs.",
|
|
|
6 |
from pytgcalls.exceptions import NoActiveGroupCall
|
7 |
|
8 |
import config
|
9 |
+
from DragMusic import Apple, Resso, SoundCloud, Spotify, Telegram, YouTube, app
|
10 |
+
from DragMusic.core.call import Drag
|
11 |
+
from DragMusic.utils import seconds_to_min, time_to_seconds
|
12 |
+
from DragMusic.utils.channelplay import get_channeplayCB
|
13 |
+
from DragMusic.utils.decorators.language import languageCB
|
14 |
+
from DragMusic.utils.decorators.play import PlayWrapper
|
15 |
+
from DragMusic.utils.formatters import formats
|
16 |
+
from DragMusic.utils.inline import (
|
17 |
botplaylist_markup,
|
18 |
livestream_markup,
|
19 |
playlist_markup,
|
20 |
slider_markup,
|
21 |
track_markup,
|
22 |
)
|
23 |
+
from DragMusic.utils.logger import play_logs
|
24 |
+
from DragMusic.utils.stream.stream import stream
|
25 |
from config import BANNED_USERS, lyrical
|
26 |
|
27 |
|
|
|
508 |
return await mystic.delete()
|
509 |
|
510 |
|
511 |
+
@app.on_callback_query(filters.regex("DragmousAdmin") & ~BANNED_USERS)
|
512 |
+
async def Dragmous_check(client, CallbackQuery):
|
513 |
try:
|
514 |
await CallbackQuery.answer(
|
515 |
"» ʀᴇᴠᴇʀᴛ ʙᴀᴄᴋ ᴛᴏ ᴜsᴇʀ ᴀᴄᴄᴏᴜɴᴛ :\n\nᴏᴘᴇɴ ʏᴏᴜʀ ɢʀᴏᴜᴘ sᴇᴛᴛɪɴɢs.\n-> ᴀᴅᴍɪɴɪsᴛʀᴀᴛᴏʀs\n-> ᴄʟɪᴄᴋ ᴏɴ ʏᴏᴜʀ ɴᴀᴍᴇ\n-> ᴜɴᴄʜᴇᴄᴋ ᴀɴᴏɴʏᴍᴏᴜs ᴀᴅᴍɪɴ ᴘᴇʀᴍɪssɪᴏɴs.",
|