Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
178 commits
Select commit Hold shift + click to select a range
4b5f846
Update userbot.py
XtomiSN Nov 3, 2021
2b5c3e4
Update play.py
XtomiSN Nov 3, 2021
88aebf6
Update play.py
XtomiSN Nov 3, 2021
b96882c
Update userbot.py
XtomiSN Nov 3, 2021
4078f80
Update userbot.py
XtomiSN Nov 3, 2021
125b5a8
Update play.py
XtomiSN Nov 3, 2021
b647ac3
Update play.py
XtomiSN Nov 3, 2021
d8bd561
Update play.py
XtomiSN Nov 3, 2021
e48269c
Update play.py
XtomiSN Nov 3, 2021
aa8bb3a
Update play.py
XtomiSN Nov 3, 2021
b09c179
Update play.py
XtomiSN Nov 3, 2021
8ff0924
Update handlers.py
XtomiSN Nov 3, 2021
3935e38
Update Dockerfile
XtomiSN Nov 4, 2021
030017e
Update play.py
Good-Boys-Exe Nov 4, 2021
cb33b67
`something`
XtomiSN Nov 4, 2021
7798149
Update requirements.txt
Good-Boys-Exe Nov 4, 2021
57df081
Update play.py
Good-Boys-Exe Nov 4, 2021
68dd423
`something`
XtomiSN Nov 4, 2021
ef041b5
Update play.py
Good-Boys-Exe Nov 4, 2021
26c18ec
Update play.py
XtomiSN Nov 4, 2021
4ac09fa
Update play.py
XtomiSN Nov 4, 2021
4f6ee9b
Update play.py
XtomiSN Nov 4, 2021
d49f4db
Update play.py
XtomiSN Nov 4, 2021
92a59d7
Update play.py
XtomiSN Nov 4, 2021
02d0483
Update song.py
XtomiSN Nov 4, 2021
e41a045
Update play.py
XtomiSN Nov 4, 2021
92ec68d
`something`
XtomiSN Nov 4, 2021
3adf835
Update play.py
XtomiSN Nov 4, 2021
3652c6a
`something`
XtomiSN Nov 4, 2021
a1fd6e2
Update play.py
XtomiSN Nov 4, 2021
a048094
`something`
XtomiSN Nov 4, 2021
309750c
Update play.py
XtomiSN Nov 4, 2021
84350a8
`something`
XtomiSN Nov 4, 2021
4f53913
Update play.py
XtomiSN Nov 4, 2021
ad0ba73
`something`
XtomiSN Nov 4, 2021
df9577c
Update play.py
XtomiSN Nov 4, 2021
859ff04
`something`
XtomiSN Nov 4, 2021
60c226e
Create __init__.py
XtomiSN Nov 4, 2021
659a951
Update play.py
XtomiSN Nov 4, 2021
e7b0be7
Add files via upload
XtomiSN Nov 4, 2021
bbc3dca
Delete __init__.py
XtomiSN Nov 4, 2021
85bdab0
Update admins.py
XtomiSN Nov 4, 2021
b2cff29
Delete thumbnail directory
XtomiSN Nov 5, 2021
41de405
Update play.py
XtomiSN Nov 5, 2021
f626f89
Update play.py
XtomiSN Nov 5, 2021
aa4d9ac
Update Dockerfile
XtomiSN Nov 5, 2021
28e3642
Update Dockerfile
XtomiSN Nov 5, 2021
41c31a2
Update Dockerfile
XtomiSN Nov 5, 2021
e2bb097
Update play.py
Good-Boys-Exe Nov 5, 2021
ab8db2a
`something`
XtomiSN Nov 5, 2021
d93f685
Update play.py
Good-Boys-Exe Nov 5, 2021
68ae43c
`something`
XtomiSN Nov 5, 2021
07b5a8c
Update play.py
Good-Boys-Exe Nov 5, 2021
b3bdb86
Update userbot.py
Good-Boys-Exe Nov 5, 2021
874b17b
Update play.py
Good-Boys-Exe Nov 5, 2021
3ead2d0
Update play.py
Good-Boys-Exe Nov 5, 2021
618add2
Update play.py
Good-Boys-Exe Nov 5, 2021
206e20c
Update play.py
Good-Boys-Exe Nov 5, 2021
27625df
Update play.py
Good-Boys-Exe Nov 5, 2021
665d4c3
Update play.py
Good-Boys-Exe Nov 5, 2021
0e5346b
`something`
XtomiSN Nov 5, 2021
8eb7e39
Update play.py
Good-Boys-Exe Nov 5, 2021
2745dd7
Update play.py
Good-Boys-Exe Nov 5, 2021
5b79212
Update play.py
Good-Boys-Exe Nov 5, 2021
7cdc742
Update play.py
Good-Boys-Exe Nov 5, 2021
5dc1cd7
Update play.py
Good-Boys-Exe Nov 5, 2021
ce9b96d
Update play.py
Good-Boys-Exe Nov 5, 2021
fa2b7e6
`something`
XtomiSN Nov 5, 2021
861e822
Update play.py
Good-Boys-Exe Nov 5, 2021
cb7262c
`something`
XtomiSN Nov 5, 2021
444353d
Update play.py
Good-Boys-Exe Nov 5, 2021
4562e22
Update play.py
Good-Boys-Exe Nov 5, 2021
69687cd
Update play.py
Good-Boys-Exe Nov 5, 2021
e3ffc47
Update play.py
Good-Boys-Exe Nov 5, 2021
ef0e066
`something`
XtomiSN Nov 5, 2021
7e5cb20
Update play.py
Good-Boys-Exe Nov 5, 2021
0a157e4
`something`
XtomiSN Nov 5, 2021
2af5b8a
Update play.py
Good-Boys-Exe Nov 5, 2021
437ad99
Update play.py
Good-Boys-Exe Nov 5, 2021
1c6ad5f
Update play.py
Good-Boys-Exe Nov 5, 2021
893fb42
`something`
XtomiSN Nov 5, 2021
ec3ee2e
Create __init__.py
XtomiSN Nov 5, 2021
96742df
Add files via upload
XtomiSN Nov 5, 2021
a74d1c1
Update play.py
XtomiSN Nov 5, 2021
edcc1f9
Create translated.py
XtomiSN Nov 5, 2021
d751419
Update translated.py
XtomiSN Nov 5, 2021
63d59d2
Update translated.py
XtomiSN Nov 5, 2021
e2c38dc
`something`
XtomiSN Nov 5, 2021
6b66b66
Update translated.py
XtomiSN Nov 5, 2021
55712b3
`something`
XtomiSN Nov 5, 2021
589cd72
Update requirements.txt
XtomiSN Nov 5, 2021
221eee7
Update translated.py
XtomiSN Nov 5, 2021
fa41467
Update translated.py
XtomiSN Nov 5, 2021
03efe9c
Update requirements.txt
XtomiSN Nov 5, 2021
03f4be2
Update translated.py
XtomiSN Nov 5, 2021
5969d7d
Update requirements.txt
XtomiSN Nov 5, 2021
739544c
Update and rename translated.py to purge.py
XtomiSN Nov 6, 2021
9448c9c
`something`
XtomiSN Nov 6, 2021
491595c
Delete purge.py
XtomiSN Nov 6, 2021
d5ef561
Update userbot.py
XtomiSN Nov 6, 2021
71d172b
`something`
XtomiSN Nov 6, 2021
27b2bb3
Update userbot.py
XtomiSN Nov 6, 2021
2be70e0
Update github.py
XtomiSN Nov 6, 2021
539b099
Create filters.py
XtomiSN Nov 6, 2021
ad0d28b
Update config.py
XtomiSN Nov 6, 2021
d64c486
`something`
XtomiSN Nov 6, 2021
64bb7f5
Update admins.py
XtomiSN Nov 6, 2021
35b0539
`something`
XtomiSN Nov 6, 2021
43637d0
Update play.py
XtomiSN Nov 6, 2021
d3aa302
`something`
XtomiSN Nov 6, 2021
6b21e84
Update userbot.py
XtomiSN Nov 6, 2021
1e95a8a
`something`
XtomiSN Nov 6, 2021
3904265
Update userbot.py
XtomiSN Nov 6, 2021
af44f10
Update truth_or_dare.py
XtomiSN Nov 6, 2021
50a8c54
`something`
XtomiSN Nov 6, 2021
7e1f2fe
Update tts.py
XtomiSN Nov 6, 2021
5f5c3be
Update tts.py
XtomiSN Nov 6, 2021
4d281b7
Update tts.py
XtomiSN Nov 6, 2021
77df44b
`something`
XtomiSN Nov 6, 2021
097584a
Update user_id.py
XtomiSN Nov 6, 2021
0ed46e6
`something`
XtomiSN Nov 6, 2021
df96dfd
Update song.py
XtomiSN Nov 6, 2021
fdc480c
`something`
XtomiSN Nov 6, 2021
f525491
Update quote.py
XtomiSN Nov 6, 2021
60f2d4e
`something`
XtomiSN Nov 6, 2021
c6f20d9
Update quote.py
XtomiSN Nov 6, 2021
521612d
Update github.py
XtomiSN Nov 6, 2021
26d696d
`something`
XtomiSN Nov 6, 2021
8176caa
Update config.py
XtomiSN Nov 6, 2021
636701d
Update config.py
XtomiSN Nov 6, 2021
69b839d
Update admins.py
XtomiSN Nov 6, 2021
eed4d2e
Update github.py
XtomiSN Nov 6, 2021
259b824
`something`
XtomiSN Nov 6, 2021
3979d64
Update play.py
XtomiSN Nov 6, 2021
2dd6bd2
Update song.py
XtomiSN Nov 6, 2021
b0ba7e8
`something`
XtomiSN Nov 6, 2021
a832e94
Update quote.py
XtomiSN Nov 6, 2021
497dd37
`something`
XtomiSN Nov 6, 2021
69e084f
Update truth_or_dare.py
XtomiSN Nov 6, 2021
e0582a2
Update tts.py
XtomiSN Nov 6, 2021
05ce406
Update user_id.py
XtomiSN Nov 6, 2021
bca61f2
`something`
XtomiSN Nov 6, 2021
4ee2232
Update userbot.py
XtomiSN Nov 6, 2021
f4d4253
Update admins.py
XtomiSN Nov 6, 2021
3acfac6
Update play.py
XtomiSN Nov 6, 2021
1874181
Update userbot.py
XtomiSN Nov 6, 2021
3ceea24
Delete filters.py
XtomiSN Nov 7, 2021
348ebe4
Update admins.py
XtomiSN Nov 7, 2021
4244d00
Update github.py
XtomiSN Nov 7, 2021
016aba5
Update play.py
XtomiSN Nov 7, 2021
58ec045
Update quote.py
XtomiSN Nov 7, 2021
8d72a50
Update song.py
XtomiSN Nov 7, 2021
d8aa576
Update truth_or_dare.py
XtomiSN Nov 7, 2021
9e15894
Update tts.py
XtomiSN Nov 7, 2021
a6c0c02
Update user_id.py
XtomiSN Nov 7, 2021
d20b5f6
Update userbot.py
XtomiSN Nov 7, 2021
d9c46c1
`something`
XtomiSN Nov 7, 2021
ebc50c7
Update userbot.py
XtomiSN Nov 7, 2021
edb9cd9
Update config.py
XtomiSN Nov 7, 2021
6e34ee4
Update Dockerfile
XtomiSN Nov 8, 2021
450978d
Delete __init__.py
XtomiSN Nov 8, 2021
04f7132
Update userbot.py
XtomiSN Nov 9, 2021
6c05a0d
Update play.py
XtomiSN Nov 9, 2021
3f05db9
Update play.py
XtomiSN Nov 9, 2021
f20e832
Update main.py
XtomiSN Nov 9, 2021
dfe3a11
`something`
XtomiSN Nov 9, 2021
8edc61a
Update play.py
XtomiSN Nov 9, 2021
a9505d5
Update play.py
XtomiSN Nov 10, 2021
bf81129
`something`
XtomiSN Nov 10, 2021
c0c7faf
Update play.py
XtomiSN Nov 10, 2021
b53b794
`something`
XtomiSN Nov 10, 2021
fe215e7
Update play.py
XtomiSN Nov 10, 2021
ba693ec
Update play.py
XtomiSN Nov 10, 2021
2cf47e1
`something`
XtomiSN Nov 10, 2021
c415d91
Update play.py
XtomiSN Nov 10, 2021
bbb863c
Update play.py
XtomiSN Nov 10, 2021
4ab7fd2
Update Dockerfile
XtomiSN Nov 10, 2021
d0b7348
Update play.py
XtomiSN Nov 10, 2021
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
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.9
FROM nikolaik/python-nodejs:python3.9-nodejs17

RUN apt update && apt upgrade -y
RUN apt install python3-pip -y
Expand Down
4 changes: 4 additions & 0 deletions MusicAndVideo/admins.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
@Client.on_message(filters.command(["skip"], prefixes=f"{HNDLR}"))
@authorized_users_only
async def skip(client, m: Message):
await m.delete()
chat_id = m.chat.id
if len(m.command) < 2:
op = await skip_current_song(chat_id)
Expand Down Expand Up @@ -43,6 +44,7 @@ async def skip(client, m: Message):
@Client.on_message(filters.command(["end", "stop"], prefixes=f"{HNDLR}"))
@authorized_users_only
async def stop(client, m: Message):
await m.delete()
chat_id = m.chat.id
if chat_id in QUEUE:
try:
Expand All @@ -58,6 +60,7 @@ async def stop(client, m: Message):
@Client.on_message(filters.command(["pause"], prefixes=f"{HNDLR}"))
@authorized_users_only
async def pause(client, m: Message):
await m.delete()
chat_id = m.chat.id
if chat_id in QUEUE:
try:
Expand All @@ -74,6 +77,7 @@ async def pause(client, m: Message):
@Client.on_message(filters.command(["resume"], prefixes=f"{HNDLR}"))
@authorized_users_only
async def resume(client, m: Message):
await m.delete()
chat_id = m.chat.id
if chat_id in QUEUE:
try:
Expand Down
3 changes: 2 additions & 1 deletion MusicAndVideo/github.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@
@Client.on_message(filters.command(["git", "github"], prefixes=f"{HNDLR}"))
@capture_err
async def github(_, message):
await message.delete()
if len(message.command) != 2:
await message.reply_text("/git Username")
await message.reply_text("• Harap masukkan username github yang valid")
return
username = message.text.split(None, 1)[1]
URL = f"https://api.github.com/users/{username}"
Expand Down
2 changes: 1 addition & 1 deletion MusicAndVideo/helpers/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,6 @@ async def on_end_handler(_, update: Update):
else:
await bot.send_message(
chat_id,
f"**🎧 Sekarang Memutar** \n[{op[0]}]({op[1]}) | `{op[2]}`",
f"**🎧 Sekarang Memutar** \n[{op[0]}]({op[1]}) | `{op[2]}`\n====>[𝗦𝗨𝗣𝗣𝗢𝗥𝗧 𝗖𝗛𝗔𝗧](https://t.me/GroupMusicRandom)<====",
disable_web_page_preview=True,
)
93 changes: 43 additions & 50 deletions MusicAndVideo/play.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
from __future__ import unicode_literals

import asyncio
import glob
import random

from pyrogram import Client, filters
Expand All @@ -16,23 +19,8 @@
from config import HNDLR, bot, call_py
from MusicAndVideo.helpers.queues import QUEUE, add_to_queue, get_queue

IMAGE = [
"https://telegra.ph/file/cbdd8b864c39b394de8f6.jpg",
"https://telegra.ph/file/24126cf48ed2bc9f6ee60.jpg",
"https://telegra.ph/file/a47e868aa23969b827b02.jpg",
"https://telegra.ph/file/9e8adc4d38dc05e913fd1.jpg",
"https://telegra.ph/file/806b59d49aa0e326a3184.jpg",
"https://telegra.ph/file/83939bc9832dff8a83682.jpg",
"https://telegra.ph/file/2aef497654499534d94de.jpg",
"https://telegra.ph/file/c9715a3f7cf9bf18bfc42.jpg",
"https://telegra.ph/file/7141b55e33b69a434f8c5.jpg",
"https://telegra.ph/file/cbce4a97105ee1debdf91.jpg",
"https://telegra.ph/file/7001368a78193f179bd67.jpg",
"https://telegra.ph/file/1d1748506600b2da206c8.jpg",
"https://telegra.ph/file/d081b03640c7cb4247b17.jpg",
]

IMAGE_THUMBNAIL = random.choice(IMAGE)
ambil_foto = glob.glob("MusicAndVideo/thumbnail/*")
image_thumbnail = random.choice(ambil_foto)

# music player
def ytsearch(query):
Expand Down Expand Up @@ -125,14 +113,14 @@ async def play(client, m: Message):
if chat_id in QUEUE:
pos = add_to_queue(chat_id, songname, dl, link, "Audio", 0)
await huehue.delete()
# await m.reply_to_message.delete()
await m.reply_photo(
photo="https://telegra.ph/file/d6f92c979ad96b2031cba.png",
caption=f"""
**#⃣ Lagu Di Antrian Ke {pos}
🏷️ Judul: [{songname}]({link})
💬 Chat ID: {chat_id}
🎧 Atas Permintaan: {m.from_user.mention}**
🎧 Atas Permintaan: {m.from_user.mention}
====>[𝗦𝗨𝗣𝗣𝗢𝗥𝗧 𝗖𝗛𝗔𝗧](https://t.me/GroupMusicRandom)<====**
""",
)
else:
Expand All @@ -145,14 +133,14 @@ async def play(client, m: Message):
)
add_to_queue(chat_id, songname, dl, link, "Audio", 0)
await huehue.delete()
# await m.reply_to_message.delete()
await m.reply_photo(
photo="https://telegra.ph/file/6213d2673486beca02967.png",
caption=f"""
**▶ Mulai Memutar Lagu
🏷️ Judul: [{songname}]({link})
💬 Chat ID: {chat_id}
🎧 Atas Permintaan: {m.from_user.mention}**
🎧 Atas Permintaan: {m.from_user.mention}
====>[𝗦𝗨𝗣𝗣𝗢𝗥𝗧 𝗖𝗛𝗔𝗧](https://t.me/GroupMusicRandom)<====**
""",
)

Expand All @@ -171,19 +159,20 @@ async def play(client, m: Message):
url = search[1]
hm, ytlink = await ytdl(url)
if hm == 0:
await huehue.edit(f"**YTDL ERROR ⚠️** \n\n`{ytlink}`")
await huehue.edit(f"**YTDL ERROR** \n\n`{ytlink}`")
else:
if chat_id in QUEUE:
pos = add_to_queue(chat_id, songname, ytlink, url, "Audio", 0)
await huehue.delete()
# await m.reply_to_message.delete()
await m.reply_photo(
photo=f"{IMAGE_THUMBNAIL}",
await client.send_photo(
chat_id,
photo=f"{image_thumbnail}",
caption=f"""
**#⃣ Lagu Di Antrian Ke {pos}
🏷️ Judul: [{songname}]({url})
💬 Chat ID: {chat_id}
🎧 Atas Permintaan: {m.from_user.mention}**
🎧 Atas Permintaan: {m.from_user.mention}
====>[𝗦𝗨𝗣𝗣𝗢𝗥𝗧 𝗖𝗛𝗔𝗧](https://t.me/GroupMusicRandom)<====**
""",
)
else:
Expand All @@ -197,18 +186,19 @@ async def play(client, m: Message):
)
add_to_queue(chat_id, songname, ytlink, url, "Audio", 0)
await huehue.delete()
# await m.reply_to_message.delete()
await m.reply_photo(
photo=f"{IMAGE_THUMBNAIL}",
await client.send_photo(
chat_id,
photo=f"{image_thumbnail}",
caption=f"""
**▶ Mulai Memutar Lagu
🏷️ Judul: [{songname}]({url})
💬 Chat ID: {chat_id}
🎧 Atas Permintaan: {m.from_user.mention}**
🎧 Atas Permintaan: {m.from_user.mention}
====>[𝗦𝗨𝗣𝗣𝗢𝗥𝗧 𝗖𝗛𝗔𝗧](https://t.me/GroupMusicRandom)<====**
""",
)
except Exception as ep:
await huehue.edit(f"`{ep}`")
await m.reply(f"`{ep}`")


@Client.on_message(filters.command(["vplay"], prefixes=f"{HNDLR}"))
Expand Down Expand Up @@ -242,14 +232,15 @@ async def vplay(client, m: Message):
if chat_id in QUEUE:
pos = add_to_queue(chat_id, songname, dl, link, "Video", Q)
await huehue.delete()
# await m.reply_to_message.delete()
await m.reply_photo(
chat_id,
photo="https://telegra.ph/file/d6f92c979ad96b2031cba.png",
caption=f"""
**#⃣ Video Di Antrian Ke {pos}
🏷️ Judul: [{songname}]({link})
💬 Chat ID: {chat_id}
🎧 Atas Permintaan: {m.from_user.mention}**
🎧 Atas Permintaan: {m.from_user.mention}
====>[𝗦𝗨𝗣𝗣𝗢𝗥𝗧 𝗖𝗛𝗔𝗧](https://t.me/GroupMusicRandom)<====**
""",
)
else:
Expand All @@ -266,14 +257,14 @@ async def vplay(client, m: Message):
)
add_to_queue(chat_id, songname, dl, link, "Video", Q)
await huehue.delete()
# await m.reply_to_message.delete()
await m.reply_photo(
photo="https://telegra.ph/file/6213d2673486beca02967.png",
caption=f"""
**▶ Mulai Memutar Video
🏷️ Judul: [{songname}]({link})
💬 Chat ID: {chat_id}
🎧 Atas permintaan: {m.from_user.mention}**
🎧 Atas permintaan: {m.from_user.mention}
====>[𝗦𝗨𝗣𝗣𝗢𝗥𝗧 𝗖𝗛𝗔𝗧](https://t.me/GroupMusicRandom)<====**
""",
)

Expand All @@ -298,19 +289,20 @@ async def vplay(client, m: Message):
url = search[1]
hm, ytlink = await ytdl(url)
if hm == 0:
await huehue.edit(f"**YTDL ERROR ⚠️** \n\n`{ytlink}`")
await huehue.edit(f"**YTDL ERROR** \n\n`{ytlink}`")
else:
if chat_id in QUEUE:
pos = add_to_queue(chat_id, songname, ytlink, url, "Video", Q)
await huehue.delete()
# await m.reply_to_message.delete()
await m.reply_photo(
photo=f"{IMAGE_THUMBNAIL}",
await client.send_photo(
chat_id,
photo=f"{image_thumbnail}",
caption=f"""
**#⃣ Video Di Antrian Ke {pos}
🏷️ Judul: [{songname}]({url})
💬 Chat ID: {chat_id}
🎧 Atas Permintaan: {m.from_user.mention}**
🎧 Atas Permintaan: {m.from_user.mention}
====>[𝗦𝗨𝗣𝗣𝗢𝗥𝗧 𝗖𝗛𝗔𝗧](https://t.me/GroupMusicRandom)<====**
""",
)
else:
Expand All @@ -322,18 +314,19 @@ async def vplay(client, m: Message):
)
add_to_queue(chat_id, songname, ytlink, url, "Video", Q)
await huehue.delete()
# await m.reply_to_message.delete()
await m.reply_photo(
photo=f"{IMAGE_THUMBNAIL}",
await client.send_photo(
chat_id,
photo=f"{image_thumbnail}",
caption=f"""
**▶ Mulai Memutar Video
🏷️ Judul: [{songname}]({url})
💬 Chat ID: {chat_id}
🎧 Atas Permintaan: {m.from_user.mention}**
🎧 Atas Permintaan: {m.from_user.mention}
====>[𝗦𝗨𝗣𝗣𝗢𝗥𝗧 𝗖𝗛𝗔𝗧](https://t.me/GroupMusicRandom)<====**
""",
)
except Exception as ep:
await huehue.edit(f"`{ep}`")
await m.reply(f" **ERROR**\n`{ep}`")


@Client.on_message(filters.command(["playfrom"], prefixes=f"{HNDLR}"))
Expand Down Expand Up @@ -371,22 +364,22 @@ async def playfrom(client, m: Message):
stream_type=StreamType().pulse_stream,
)
add_to_queue(chat_id, songname, location, link, "Audio", 0)
# await m.reply_to_message.delete()
await hmm.delete()
await m.reply_photo(
photo="https://telegra.ph/file/6213d2673486beca02967.png",
caption=f"""
**▶ Mulai Memutar Lagu Dari {chat}
🏷️ Judul: [{songname}]({link})
💬 Chat ID: {chat_id}
🎧 Atas Permintaan: {m.from_user.mention}**
🎧 Atas Permintaan: {m.from_user.mention}
====>[𝗦𝗨𝗣𝗣𝗢𝗥𝗧 𝗖𝗛𝗔𝗧](https://t.me/GroupMusicRandom)<====**
""",
)
await hmm.delete()
await m.reply(
f"➕ Menambahkan {lmt} Lagu Ke Dalam Antrian\n• Klik {HNDLR}playlist Untuk Melihat Daftar Putar**"
f"➕ Menambahkan {lmt} Lagu Ke Dalam Antrian\n• Ketik {HNDLR}playlist Untuk Melihat Daftar Putar**"
)
except Exception as e:
await hmm.edit(f"**ERROR** \n`{e}`")
await m.reply(f"**ERROR** \n`{e}`")


@Client.on_message(filters.command(["playlist", "queue"], prefixes=f"{HNDLR}"))
Expand Down
3 changes: 2 additions & 1 deletion MusicAndVideo/song.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

@Client.on_message(filters.command(["song", "music"], prefixes=f"{HNDLR}"))
async def song(client, message: Message):
await message.delete()
urlissed = get_text(message)
if not urlissed:
await client.send_message(
Expand Down Expand Up @@ -233,8 +234,8 @@ def time_to_seconds(time):

@Client.on_message(filters.command(["vsong", "video"], prefixes=f"{HNDLR}"))
async def vsong(client, message: Message):
await message.delete()
urlissed = get_text(message)

pablo = await client.send_message(message.chat.id, f"**🔎 Mencari** `{urlissed}`")
if not urlissed:
await pablo.edit(
Expand Down
Binary file added MusicAndVideo/thumbnail/MusicAndVideo_1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added MusicAndVideo/thumbnail/MusicAndVideo_10.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added MusicAndVideo/thumbnail/MusicAndVideo_11.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added MusicAndVideo/thumbnail/MusicAndVideo_12.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added MusicAndVideo/thumbnail/MusicAndVideo_2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added MusicAndVideo/thumbnail/MusicAndVideo_3.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added MusicAndVideo/thumbnail/MusicAndVideo_4.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added MusicAndVideo/thumbnail/MusicAndVideo_5.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added MusicAndVideo/thumbnail/MusicAndVideo_6.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added MusicAndVideo/thumbnail/MusicAndVideo_7.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added MusicAndVideo/thumbnail/MusicAndVideo_8.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added MusicAndVideo/thumbnail/MusicAndVideo_9.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
24 changes: 20 additions & 4 deletions MusicAndVideo/userbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,21 +32,31 @@ async def _human_time_duration(seconds):

@Client.on_message(filters.command(["ping"], prefixes=f"{HNDLR}"))
async def ping(client, m: Message):
await m.delete()
start = time()
current_time = datetime.utcnow()
m_reply = await m.reply_text("⚡")
m_reply = await m.reply_text("Ping.")
await m_reply.edit("Ping..")
await m_reply.edit("Ping...")
await m_reply.edit("Ping....")
await m_reply.edit("Ping.....")
await m_reply.edit("Ping......")
await m_reply.edit("Ping.......")
await m_reply.edit("Ping........")
await m_reply.edit("Ping.........")
delta_ping = time() - start
uptime_sec = (current_time - START_TIME).total_seconds()
uptime = await _human_time_duration(int(uptime_sec))
await m_reply.edit(
f"<b>🏓 PONG</b> `{delta_ping * 1000:.3f} ms` \n<b>⏳ AKTIF</b> - `{uptime}`"
f"<b>🏓 PONG:</b> `{delta_ping * 1000:.3f} ms` \n<b>⏳ AKTIF:</b> `{uptime}`"
)


@Client.on_message(
filters.user(SUDO_USERS) & filters.command(["restart"], prefixes=f"{HNDLR}")
)
async def restart(client, m: Message):
await m.delete()
loli = await m.reply("1")
await loli.edit("2")
await loli.edit("3")
Expand All @@ -63,8 +73,11 @@ async def restart(client, m: Message):

@Client.on_message(filters.command(["help"], prefixes=f"{HNDLR}"))
async def help(client, m: Message):
await m.delete()
HELP = f"""
<b>🛠 MENU BANTUAN
<b>👋 HALLO {m.from_user.mention}!

🛠 MENU BANTUAN

⚡ PERINTAH UNTUK SEMUA ORANG
• {HNDLR}play [judul lagu | link youtube | balas file audio] - untuk memutar lagu
Expand All @@ -84,8 +97,11 @@ async def help(client, m: Message):

@Client.on_message(filters.command(["repo"], prefixes=f"{HNDLR}"))
async def repo(client, m: Message):
await m.delete()
REPO = f"""
<b>🎶 Music Dan Video Player UserBot
<b>👋 HALLO {m.from_user.mention}!

🎶 Music Dan Video Player UserBot

🤖 Telegram UserBot Untuk Memutar Lagu Dan Video Di Obrolan Suara Telegram.

Expand Down
9 changes: 2 additions & 7 deletions config.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import os

from dotenv import load_dotenv
from pyrogram import Client, filters
from pyrogram import Client
from pytgcalls import PyTgCalls

# For Local Deploy
Expand All @@ -15,11 +15,6 @@
HNDLR = os.getenv("HNDLR", "/")
SUDO_USERS = list(map(int, os.getenv("SUDO_USERS").split()))


contact_filter = filters.create(
lambda _, __, message: (message.from_user and message.from_user.is_contact)
or message.outgoing
)

# Cellmusic
bot = Client(SESSION, API_ID, API_HASH, plugins=dict(root="MusicAndVideo"))
call_py = PyTgCalls(bot)
Loading