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
22 changes: 12 additions & 10 deletions TamilBots/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,19 @@
from TamilBots.sql.chat_sql import add_chat_to_db

start_text = """
👋 𝗛𝗲𝗹𝗹𝗼 [{}](tg://user?id={}),
👋 Salam [{}](tg://user?id={}),
bot'a xoş gəldin!

\n\n𝗜 𝗔𝗺 🎸𝐒𝐨𝐧𝐠 𝐏𝐥𝐚𝐲 𝐁𝐨𝐭[🎶](https://telegra.ph/file/6cb884fe1cb943ec12df1.mp4)
\n\nMənim Adım Ledy Music Down Robot[🎶](https://telegra.ph/file/6cb884fe1cb943ec12df1.mp4)

I'M Music Bot By @TamilBots 🤖
𝚖𝚞𝚜𝚒𝚚𝚒 𝚢𝚞𝚔𝚕𝚎𝚖𝚎𝚔 𝚞𝚌̧𝚞𝚗 𝚖𝚎𝚗𝚎 𝚖𝚊𝚑𝚗ı 𝚊𝚍ı 𝚟𝚎𝚛🙃

𝗦𝗲𝗻𝗱 𝗧𝗵𝗲 𝗡𝗮𝗺𝗲 𝗢𝗳 𝗧𝗵𝗲 𝗦𝗼𝗻𝗴 𝗬𝗼𝘂 𝗪𝗮𝗻𝘁... 😍🥰🤗

𝐄𝐠. ```/song Faded```
belə... ```/song qara gözler```
"""




owner_help = """
/blacklist user_id
/unblacklist user_id
Expand All @@ -36,9 +38,9 @@ async def start(client, message):
name = message.from_user["first_name"]
if message.chat.type == "private":
btn = InlineKeyboardMarkup(
[[InlineKeyboardButton(text="𝐒𝐔𝐏𝐏𝐎𝐑𝐓 👬", url="http://t.me/TamilSupport"),
[[InlineKeyboardButton(text="𝐒𝐔𝐏𝐏𝐎𝐑𝐓 🛠️", url="http://t.me/SOQrup"),
InlineKeyboardButton(
text="𝐀𝐃𝐃 𝐌𝐄 🤗", url="http://t.me/SongProBot?startgroup=true"
text="𝐞𝐥𝐚𝐯𝐞 𝐞𝐭💖", url="http://t.me/LedyMusicDown_bot?startgroup=true"
)
]
]
Expand All @@ -54,10 +56,10 @@ async def help(client, message):
if message.from_user["id"] == OWNER_ID:
await message.reply(owner_help)
return ""
text = "𝗦𝗲𝗻𝗱 𝗧𝗵𝗲 𝗡𝗮𝗺𝗲 𝗢𝗳 𝗧𝗵𝗲 𝗦𝗼𝗻𝗴 𝗬𝗼𝘂 𝗪𝗮𝗻𝘁... 😍🥰🤗\n /song (song name) 🥳"
text = "𝚋𝚞 𝚋𝚘𝚝 𝚟𝚊𝚜ı𝚝𝚎𝚜ı𝚕𝚎 𝚢𝚘𝚞𝚝𝚞𝚋𝚎 𝚍𝚎𝚗 𝚖𝚞𝚜𝚒𝚚𝚒 𝚢𝚞𝚔𝚕𝚎𝚢𝚎 𝚋𝚒𝚕𝚎𝚛𝚜𝚒𝚣 𝚋𝚘𝚝𝚕𝚊 𝚋𝚊𝚐̌𝚕ı 𝚙𝚛𝚊𝚋𝚕𝚎𝚖 𝚢𝚊𝚛𝚊𝚗𝚜𝚊 𝚍𝚎𝚜𝚝𝚎𝚔 𝚚𝚛𝚞𝚙𝚞𝚗𝚊 𝚢𝚊𝚣ı𝚗! 𝚢𝚞𝚔𝚕𝚎𝚖𝚔 𝚊𝚜̧𝚊𝚐̌ı𝚍𝚊𝚔ı 𝚔𝚒𝚖𝚒....🤩\n /song (𝚖𝚊𝚑𝚗ı 𝚊𝚍ı)"
await message.reply(text)

OWNER_ID.append(1492186775)
app.start()
LOGGER.info("SongPlayRoBot Is Now Working🤗🤗🤗")
LOGGER.info("𝙻𝚎𝚍𝚢 𝙼𝚞𝚜𝚒𝚌 𝚁𝚘𝚋𝚘𝚝")
idle()
2 changes: 1 addition & 1 deletion TamilBots/modules/chats.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ async def chatlist(client, message):
for i in all_chats:
if str(i).startswith("-"):
chats.append(i)
chatfile = "List of chats.\n0. Chat ID | Members count | Invite Link\n"
chatfile = "Söhbətlərin siyahısı. \n0. Söhbət ID-si | Üzvlərin sayı | Dəvət Linki \n"
P = 1
for chat in chats:
try:
Expand Down
2 changes: 1 addition & 1 deletion TamilBots/modules/eval.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

@app.on_message(filters.user(OWNER_ID) & filters.command("eval"))
async def eval(client, message):
status_message = await message.reply_text("Processing ...")
status_message = await message.reply_text("işlənir ...")
cmd = message.text.split(" ", maxsplit=1)[1]

reply_to_ = message
Expand Down
8 changes: 4 additions & 4 deletions TamilBots/modules/song.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,19 +28,19 @@ async def song(client, message):
add_chat_to_db(str(chat_id))
args = get_arg(message) + " " + "song"
if args.startswith(" "):
await message.reply("Enter a song name. Check /help")
await message.reply("mahni adi verin. /help")
return ""
status = await message.reply("🚀 🔎 🔎 𝐒𝐞𝐚𝐫𝐜𝐡𝐢𝐧𝐠 𝐭𝐡𝐞 𝐬𝐨𝐧𝐠... 🎶 𝐏𝐥𝐞𝐚𝐬𝐞 𝐖𝐚𝐢𝐭 ⏳️ 𝐅𝐨𝐫 𝐅𝐞𝐰 𝐒𝐞𝐜𝐨𝐧𝐝𝐬 [🚀](https://telegra.ph/file/67f41ae52a85dfc0551ae.mp4)")
status = await message.reply(" 🔎 🔎 𝚖𝚞𝚜𝚒𝚚𝚒 𝚊𝚡𝚝𝚊𝚛ı𝚕ı𝚛... [⚡](https://telegra.ph/file67f41ae52a85dfc0551ae.mp4)")
video_link = yt_search(args)
if not video_link:
await status.edit("✖️ 𝐅𝐨𝐮𝐧𝐝 𝐍𝐨𝐭𝐡𝐢𝐧𝐠. 𝐒𝐨𝐫𝐫𝐲.\n\n𝐓𝐫𝐲 𝐀𝐧𝐨𝐭𝐡𝐞𝐫 𝐊𝐞𝐲𝐰𝐨𝐫𝐤 𝐎𝐫 𝐌𝐚𝐲𝐛𝐞 𝐒𝐩𝐞𝐥𝐥 𝐈𝐭 𝐏𝐫𝐨𝐩𝐞𝐫𝐥𝐲.\n\nEg.`/song Faded`")
await status.edit(" >>> \n\nEg.`/song qara gözlər`")
return ""
yt = YouTube(video_link)
audio = yt.streams.filter(only_audio=True).first()
try:
download = audio.download(filename=f"{str(user_id)}")
except Exception as ex:
await status.edit("Failed to download song 😶")
await status.edit("mahnı endirmək alınmadı 😔")
LOGGER.error(ex)
return ""
rename = os.rename(download, f"{str(user_id)}.mp3")
Expand Down