Skip to content
Open
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
12 changes: 6 additions & 6 deletions DemonMusicBot.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@

@bot.on_message(filters.command(['start']))
def start(client, message):
demon = f'👋 **Salam** {message.from_user.mention}\n\n**ℹ️ Mən musiqi, video yükləmək üçün yaradılmış botam və istədiyiniz mahnının sözlərini məndən öyrənə bilərsiniz 😁**\n\n** Botun istifadə qaydasını öyrənmək üçün** /help **əmrindən istifadə edin**'
demon = f'👋 **Salam** {message.from_user.mention}\n\n**ℹ️ Mən musiqi, video yükləmək üçün @Tenha055 tərəfindənyaradılmış botam və istədiyiniz mahnının sözlərini məndən öyrənə bilərsiniz 🌹**\n\n**⚜️ Botun istifadə qaydasını öyrənmək üçün** /help **əmrindən istifadə edin**'
message.reply_text(
text=demon,
quote=False,
reply_markup=InlineKeyboardMarkup(
[[
InlineKeyboardButton('Rəsmi Kanal ✅', url='https://t.me/Botsinator'),
InlineKeyboardButton('Rəsmi Kanal ✅', url='https://t.me/ledyplaylist'),
InlineKeyboardButton('Playlist 🎵', url=f'https://t.me/{Config.PLAYLIST_NAME}')
],[
InlineKeyboardButton('Sahib 👨🏻‍💻', url=f'T.me/{Config.BOT_OWNER}')
Expand All @@ -52,7 +52,7 @@ def help(client, message):
quote=False,
reply_markup=InlineKeyboardMarkup(
[[
InlineKeyboardButton('Rəsmi Kanal ✅', url='https://t.me/Botsinator'),
InlineKeyboardButton('Rəsmi Kanal ✅', url='https://t.me/ledyplaylist'),
InlineKeyboardButton('Playlist 🎵', url=f'https://t.me/{Config.PLAYLIST_NAME}')
],[
InlineKeyboardButton('Sahib 👨🏻‍💻', url=f'T.me/{Config.BOT_OWNER}')
Expand All @@ -65,7 +65,7 @@ def help(client, message):

@bot.on_message(filters.command("alive") & filters.user(Config.BOT_OWNER))
async def live(client: Client, message: Message):
livemsg = await message.reply_text('`Mükəmməl İşləyirəm 😎`')
livemsg = await message.reply_text('`Narahat olma Mükəmməl İşləyirəm 😎`')

#musiqi əmri#

Expand Down Expand Up @@ -116,9 +116,9 @@ def a(client, message):
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, performer="@Botsinator")
message.reply_audio(audio_file, caption=rep, parse_mode='md',quote=False, title=title, duration=dur, thumb=thumb_name, performer="@ledyplaylist")
m.delete()
bot.send_audio(chat_id=Config.PLAYLIST_ID, audio=audio_file, caption=rep, performer="@Botsinator", parse_mode='md', title=title, duration=dur, thumb=thumb_name)
bot.send_audio(chat_id=Config.PLAYLIST_ID, audio=audio_file, caption=rep, performer="@ledyplaylist", parse_mode='md', title=title, duration=dur, thumb=thumb_name)
except Exception as e:
m.edit('**⚠️ Gözlənilməyən xəta yarandı.**\n**Xahiş edirəm xətanı sahibimə xəbərdar et!**')
print(e)
Expand Down