Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hi #19

Open
wants to merge 39 commits into
base: TamilBots
Choose a base branch
from
Open

Hi #19

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
f5a490a
Update config.py
darkmanrandy Jul 17, 2021
12cbd15
Update README.md
darkmanrandy Jul 18, 2021
fe2a5e9
Update README.md
darkmanrandy Jul 18, 2021
f6291ef
Update README.md
darkmanrandy Jul 18, 2021
49a40f2
Update README.md
darkmanrandy Jul 18, 2021
567d368
Update README.md
darkmanrandy Jul 18, 2021
625069e
Update README.md
darkmanrandy Jul 18, 2021
ed9da99
Update README.md
darkmanrandy Jul 18, 2021
f4d2698
Update config.py
darkmanrandy Jul 18, 2021
c4446ed
Update SongPlayRoBot.py
darkmanrandy Jul 18, 2021
a38eaa7
Update SongPlayRoBot.py
darkmanrandy Jul 18, 2021
e35a93d
Update README.md
darkmanrandy Jul 18, 2021
1fd08a1
Update README.md
darkmanrandy Jul 18, 2021
d08bf3a
Update SongPlayRoBot.py
darkmanrandy Jul 18, 2021
969b744
Update SongPlayRoBot.py
darkmanrandy Jul 18, 2021
ae88bc5
Update SongPlayRoBot.py
darkmanrandy Jul 18, 2021
ce667e8
Update SongPlayRoBot.py
darkmanrandy Jul 18, 2021
78387cf
Update SongPlayRoBot.py
darkmanrandy Jul 18, 2021
97000e1
Update SongPlayRoBot.py
darkmanrandy Jul 18, 2021
63b93a8
Update config.py
darkmanrandy Jul 18, 2021
7a3ca34
Update config.py
darkmanrandy Jul 18, 2021
061850c
Update config.py
darkmanrandy Jul 18, 2021
2cb6b18
Update README.md
darkmanrandy Jul 18, 2021
52e7f2d
Update README.md
darkmanrandy Jul 18, 2021
42aebb0
Update README.md
darkmanrandy Jul 18, 2021
6dec76f
Update README.md
darkmanrandy Jul 18, 2021
086aa58
Update README.md
darkmanrandy Jul 18, 2021
560e042
Update and rename SongPlayRoBot.py to AnySongDL.py
darkmanrandy Jul 19, 2021
40e8f8e
Update AnySongDL.py
darkmanrandy Jul 19, 2021
a681aef
Update Procfile
darkmanrandy Jul 19, 2021
d8e6a84
Update AnySongDL.py
darkmanrandy Jul 19, 2021
ba4bd40
Update Procfile
darkmanrandy Jul 19, 2021
1b08638
Update config.py
darkmanrandy Jul 19, 2021
e778a89
Update AnySongDL.py
darkmanrandy Jul 19, 2021
1a4b2c5
Update AnySongDL.py
darkmanrandy Jul 19, 2021
f04ef3b
Update AnySongDL.py
darkmanrandy Jul 19, 2021
ae19eab
Update config.py
darkmanrandy Jul 19, 2021
1acd9e1
Update config.py
darkmanrandy Jul 20, 2021
9918f63
Update AnySongDL.py
darkmanrandy Jul 20, 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
10 changes: 5 additions & 5 deletions SongPlayRoBot.py → AnySongDL.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ def start(client, message):
reply_markup=InlineKeyboardMarkup(
[
[
InlineKeyboardButton('𝐒𝐔𝐏𝐏𝐎𝐑𝐓 👬', url='https://t.me/TamilSupport'),
InlineKeyboardButton('𝐀𝐃𝐃 𝐌𝐄 🤗', url='https://t.me/SongPlayRoBot?startgroup=true')
InlineKeyboardButton('𝐒𝐔𝐏𝐏𝐎𝐑𝐓 👬', url='https://t.me/Tharamaanamovies'),
InlineKeyboardButton('𝐀𝐃𝐃 𝐌𝐄 🤗', url='https://t.me/anysongdlrobot?startgroup=true')
]
]
)
Expand Down Expand Up @@ -88,21 +88,21 @@ def a(client, message):
)
print(str(e))
return
m.edit("🔎 𝐅𝐢𝐧𝐝𝐢𝐧𝐠 𝐀 𝐒𝐨𝐧𝐠 🎶 𝐏𝐥𝐞𝐚𝐬𝐞 𝐖𝐚𝐢𝐭 ⏳️ 𝐅𝐨𝐫 𝐅𝐞𝐰 𝐒𝐞𝐜𝐨𝐧𝐝𝐬 [🚀](https://telegra.ph/file/67f41ae52a85dfc0551ae.mp4)")
m.edit("🔎 𝐅𝐢𝐧𝐝𝐢𝐧𝐠 𝐀 𝐒𝐨𝐧𝐠 🎶 𝐏𝐥𝐞𝐚𝐬𝐞 𝐖𝐚𝐢𝐭 ⏳️ 𝐅𝐨𝐫 𝐅𝐞𝐰 𝐒𝐞𝐜𝐨𝐧𝐝𝐬 [🚀](https://telegra.ph/file/abdb5a244fedea3e59409.jpg)")
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 = f'🎧 𝐓𝐢𝐭𝐥𝐞 : [{title[:35]}]({link})\n⏳ 𝐃𝐮𝐫𝐚𝐭𝐢𝐨𝐧 : `{duration}`\n🎬 𝐒𝐨𝐮𝐫𝐜𝐞 : [Youtube](https://youtu.be/3pN0W4KzzNY)\n👁‍🗨 𝐕𝐢𝐞𝐰𝐬 : `{views}`\n\n💌 𝐁𝐲 : @SongPlayRoBot'
rep = f'🎧 𝐓𝐢𝐭𝐥𝐞 : [{title[:35]}]({link})\n⏳ 𝐃𝐮𝐫𝐚𝐭𝐢𝐨𝐧 : `{duration}`\n🎬 𝐒𝐨𝐮𝐫𝐜𝐞 : [Youtube](https://youtube.com/channel/UCVn_mE_SLj9l795IE5frBcQ)\n👁‍🗨 𝐕𝐢𝐞𝐰𝐬 : `{views}`\n\n💌 𝐁𝐲 : [𝗧𝗵𝗮𝗿𝗮𝗺𝗮𝗮𝗻𝗮𝗔𝗱𝗺𝗶𝗻](https://t.me/tharamaanaadmin)😎'
secmul, dur, dur_arr = 1, 0, duration.split(':')
for i in range(len(dur_arr)-1, -1, -1):
dur += (int(dur_arr[i]) * secmul)
secmul *= 60
message.reply_audio(audio_file, caption=rep, parse_mode='md',quote=False, title=title, duration=dur, thumb=thumb_name)
m.delete()
except Exception as e:
m.edit('❌ 𝐄𝐫𝐫𝐨𝐫\n\n Report This Erorr To Fix @TamilSupport ❤️')
m.edit('❌ 𝐄𝐫𝐫𝐨𝐫\n\n Report This Erorr To Fix @tendkotta ❤️')
print(e)
try:
os.remove(audio_file)
Expand Down
2 changes: 1 addition & 1 deletion Procfile
Original file line number Diff line number Diff line change
@@ -1 +1 @@
worker: python3 SongPlayRoBot.py
worker: python3 AnySongDL.py
31 changes: 10 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,27 +1,16 @@
# SongPlayRoBot
### 𝘼𝙣𝙮 𝙎𝙤𝙣𝙜𝙨 𝘿𝙤𝙬𝙣𝙡𝙤𝙖𝙙𝙚𝙧

📺 YouTube Song Downloader Bot For Telegram 🔮
## Demo : [Any Song DL](https://t.me/anysongdlrobot)

3X Fast Telethon Based Bot ⚜

Open Source Bot 👨🏻‍💻

Demo : [🎸𝐒𝐨𝐧𝐠 𝐏𝐥𝐚𝐲 𝐁𝐨𝐭🎶](https:t.me/SongProBot)

Easy To Deploy 🤗

## 💡 Deploy This Bot To Heroku ❓️
```
1) Fork The Repository,
2) Edit config.py And Add Values API_ID, API_HASH And Your Bot Token,
3) Create An App On Heroku And Connect Heroku With Your Github Repository,
4) Manual Deploy To Your Repository.
Hi, I'm Pari - A simple youtube song downloader bot
Download the songs using the link in the demo.
```
![logo](https://telegra.ph/file/9d337b3414bbf8e39ba79.jpg)
# Reach Me On Telegram [🎸𝐒𝐨𝐧𝐠 𝐏𝐥𝐚𝐲 𝐁𝐨𝐭🎶](https:t.me/SongProBot)
![logo](https://telegra.ph/file/abdb5a244fedea3e59409.jpg)
### [Tharamaana Songs🎶](https:t.me/tharamaanasongs)

# Report Any Error or Help Contact :
[Channel 💬](https://t.me/TamilBots),
[Support ❤️](https://t.me/TamilSupport)
### [TENDKOTTA ❤️](https://t.me/Tendkotta)
### [Tharamaana Movies ❤️](https://t.me/Tharamaanamovies)

Report your problem along with your name to This [PERSON](https://t.me/iMvEtRi) 😪
Report your problem along with your name to This 👇
### [Tharamaana Admin](https://t.me/tharamaanaadmin) 😪
6 changes: 3 additions & 3 deletions config.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class Config:
API_ID = "" # 🤖 Same As APP_ID. Get It From My.telegram.org.
API_HASH = "" # 🤖 Get It From My.telegram.org.
BOT_TOKEN = "" # 🤖 Get It From @BotFather (Telegram) By Sending /newbot Command.
API_ID = "4155853" # 🤖 Same As APP_ID. Get It From My.telegram.org.
API_HASH = "a32bea6d67422a34ab4b7a36978ffc21" # 🤖 Get It From My.telegram.org.
BOT_TOKEN = "1943143398:AAHRIk7flYocGaxMiWF199uIhlyuFejqKGY" # 🤖 Get It From @BotFather (Telegram) By Sending /newbot Command.