Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<h2 align="centre">SUJANDRA MUSIK</h2>
<h2 align="centre">RAMS MUSIC</h2>

### A bot that can play music on telegram group's voice call

<p align="center">
<img src="https://telegra.ph/file/8e012545e353e61211b68.jpg">
<img src=>
</p>

<h3>Requirements 📝</h3>
Expand All @@ -28,8 +28,7 @@

### Deploy To Heroku</h4>

[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/Ependelope53/SujandraMusik)

[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/ramadhan73/SujandraMusik/tree/patch-1)
Use [Repl Link](https://replit.com/@SpEcHiDe/GenerateStringSession) to get pyrogram string session

### Credits
Expand Down
24 changes: 12 additions & 12 deletions handlers/play.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ async def play(_, message: Message):
[
[
InlineKeyboardButton(
text="Channel Bucin",
url="https://t.me/Kutipankataaa")
text="Channel",
url="https://t.me/calonpenyanyi")
],[
InlineKeyboardButton("Close",'cls')

Expand All @@ -114,16 +114,16 @@ async def play(_, message: Message):

file_name = get_file_name(audio)
title = file_name
thumb_name = "https://telegra.ph/file/c364d2f8144c33bd301d5.jpg"
thumb_name = "https://telegra.ph/file/21ec80cbf299df8c55c34.jpg"
thumbnail = thumb_name
duration = round(audio.duration / 60)
views = "Locally added"
keyboard = InlineKeyboardMarkup(
[
[
InlineKeyboardButton(
text="Channel Info",
url=f"https://t.me/AkuUserBot")
text="Channel",
url=f"https://t.me/calonpenyanyi")

]
]
Expand Down Expand Up @@ -151,23 +151,23 @@ async def play(_, message: Message):
[
[
InlineKeyboardButton(
text="Follow Instagram 🌻",
url=f"https://instagram.com/hendraputraaaaaa")
text="owner",
url=f"https://t.me/gksukaribett")

]
]
)
except Exception as e:
title = "NaN"
thumb_name = "https://telegra.ph/file/c364d2f8144c33bd301d5.jpg"
thumb_name = "https://telegra.ph/file/21ec80cbf299df8c55c34.jpg"
duration = "NaN"
views = "NaN"
keyboard = InlineKeyboardMarkup(
[
[
InlineKeyboardButton(
text="Support Group",
url=f"https://t.me/VcgSupportGroup")
text="Support group",
url=f"https://t.me/wavyheartt")

]
]
Expand Down Expand Up @@ -213,8 +213,8 @@ async def play(_, message: Message):
[
[
InlineKeyboardButton(
text="Follow Instagram 🌻",
url=f"https://instagram.com/hendraputraaaaaa")
text="owner",
url=f"https://t.me/gksukaribett")

]
]
Expand Down
16 changes: 8 additions & 8 deletions handlers/private.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,29 +7,29 @@

@Client.on_message(other_filters2)
async def start(_, message: Message):
await message.reply_sticker("CAADBQADKAIAAmQgIVd2e584kTrkUgI")
await message.reply_sticker
await message.reply_text(
f"""Hai 👋🏻, I am Sujandra 🎵
f"""Hai 👋🏻, I am Rams music 🎼

I can play music in your group's voice call. Developed by [Hendra](https://t.me/IamYourEnemy).
I can play music in your group's voice call. Developed by [rama](https://t.me/gksukaribett).

Add me to your group and play music freely!
""",
reply_markup=InlineKeyboardMarkup(
[
[
InlineKeyboardButton(
"🎛 Commands", url="https://telegra.ph/Sujandra-Musik-04-24")
"🎛 Commands", url="https://telegra.ph/PANDUAN-RAMS-MUSIC-BOT-06-01")
],[
InlineKeyboardButton(
"💬 Group", url="https://t.me/VcgSupportGroup"
"💬 Group", url="https://t.me/wavyheartt"
),
InlineKeyboardButton(
"🔊 Channel", url="https://t.me/Kutipankataaa"
"🔊 Channel", url="https://t.me/calonpenyanyi"
)
],[
InlineKeyboardButton(
"🎁 Donasi", url="https://t.me/IamYourEnemy"
"📌 Owner", url="https://t.me/gksukaribett"
)]
]
),
Expand All @@ -43,7 +43,7 @@ async def gstart(_, message: Message):
[
[
InlineKeyboardButton(
"Support Channel 🌻", url="https://t.me/AkuUserBot")
"Support Channel 🌻", url="https://t.me/calonpenyanyi")
]
]
)
Expand Down
4 changes: 2 additions & 2 deletions handlers/songs.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,13 @@ def song(client, message):
)
print(str(e))
return
m.edit("Downloading the song by @IamYourEnemy...")
m.edit("Downloading the song by @gksukaribett...")
try:
with youtube_dl.YoutubeDL(ydl_opts) as ydl:
info_dict = ydl.extract_info(link, download=False)
audio_file = ydl.prepare_filename(info_dict)
ydl.process_info(info_dict)
rep = '**🎵 Uploaded by [Hendra](t.me/IamYourEnemy)**'
rep = '**🎵 Uploaded by [rama](t.me/gksukaribett)**'
secmul, dur, dur_arr = 1, 0, duration.split(':')
for i in range(len(dur_arr)-1, -1, -1):
dur += (int(dur_arr[i]) * secmul)
Expand Down