From fece2372177895b97751f92fa50cdd034d91ad73 Mon Sep 17 00:00:00 2001 From: chamodbot <95496774+chamodbot@users.noreply.github.com> Date: Wed, 8 Dec 2021 05:29:07 -0800 Subject: [PATCH] Update SongPlayRoBot.py --- SongPlayRoBot.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/SongPlayRoBot.py b/SongPlayRoBot.py index 9465a85..00f50fc 100644 --- a/SongPlayRoBot.py +++ b/SongPlayRoBot.py @@ -30,15 +30,15 @@ def time_to_seconds(time): ## Commands -------------------------------- @bot.on_message(filters.command(['start'])) def start(client, message): - TamilBots = f'๐Ÿ‘‹ ๐—›๐—ฒ๐—น๐—น๐—ผ @{message.from_user.username}\n\n๐—œ ๐—”๐—บ ๐ŸŽธ๐’๐จ๐ง๐  ๐๐ฅ๐š๐ฒ ๐๐จ๐ญ[๐ŸŽถ](https://telegra.ph/file/6cb884fe1cb943ec12df1.mp4)\n\n๐—ฆ๐—ฒ๐—ป๐—ฑ ๐—ง๐—ต๐—ฒ ๐—ก๐—ฎ๐—บ๐—ฒ ๐—ข๐—ณ ๐—ง๐—ต๐—ฒ ๐—ฆ๐—ผ๐—ป๐—ด ๐—ฌ๐—ผ๐˜‚ ๐—ช๐—ฎ๐—ป๐˜... ๐Ÿ˜๐Ÿฅฐ๐Ÿค—\n\n๐—ง๐˜†๐—ฝ๐—ฒ /s ๐—ฆ๐—ผ๐—ป๐—ด ๐—ก๐—ฎ๐—บ๐—ฒ\n\n๐„๐ . `/s Faded`' + TamilBots = f'๐Ÿ‘‹ ๐—›๐—ฒ๐—น๐—น๐—ผ @{message.from_user.username}\n\๐Ÿš€๐Ÿš€i am NIKON MUSIC FINDER BOT๐Ÿš€๐Ÿš€ [๐ŸŽถ](https://te.legra.ph/file/05b6d9c633973a7d77881.jpg)\n\n๐—ฆ๐—ฒ๐—ป๐—ฑ ๐—ง๐—ต๐—ฒ ๐—ก๐—ฎ๐—บ๐—ฒ ๐—ข๐—ณ ๐—ง๐—ต๐—ฒ ๐—ฆ๐—ผ๐—ป๐—ด ๐—ฌ๐—ผ๐˜‚ ๐—ช๐—ฎ๐—ป๐˜... ๐Ÿ˜๐Ÿฅฐ๐Ÿค—\n\n๐—ง๐˜†๐—ฝ๐—ฒ /s ๐—ฆ๐—ผ๐—ป๐—ด ๐—ก๐—ฎ๐—บ๐—ฒ\n\n๐„๐ . `/s Faded`' message.reply_text( text=TamilBots, quote=False, reply_markup=InlineKeyboardMarkup( [ [ - InlineKeyboardButton('๐’๐”๐๐๐Ž๐‘๐“ ๐Ÿ‘ฌ', url='https://t.me/TamilSupport'), - InlineKeyboardButton('๐€๐ƒ๐ƒ ๐Œ๐„ ๐Ÿค—', url='https://t.me/SongProBot?startgroup=true') + InlineKeyboardButton('๐’๐”๐๐๐Ž๐‘๐“ ๐Ÿ‘ฌ', url='https://t.me/https://t.me/Developernikoneteam'), + InlineKeyboardButton('๐€๐ƒ๐ƒ ๐Œ๐„ ๐Ÿค—', url='https://t.me/NIKONMUSICEFINDERbot?startgroup=true') ] ] ) @@ -50,7 +50,7 @@ def a(client, message): for i in message.command[1:]: query += ' ' + str(i) print(query) - m = message.reply('๐Ÿ”Ž ๐’๐ž๐š๐ซ๐œ๐ก๐ข๐ง๐  ๐ญ๐ก๐ž ๐ฌ๐จ๐ง๐ ...') + m = message.reply("๐Ÿš€๐Ÿš€searching you song๐Ÿš€๐Ÿš€...') ydl_opts = {"format": "bestaudio[ext=m4a]"} try: results = [] @@ -88,13 +88,13 @@ def a(client, message): ) print(str(e)) return - m.edit("๐Ÿ”Ž ๐…๐ข๐ง๐๐ข๐ง๐  ๐€ ๐’๐จ๐ง๐  ๐ŸŽถ ๐๐ฅ๐ž๐š๐ฌ๐ž ๐–๐š๐ข๐ญ โณ๏ธ ๐…๐จ๐ซ ๐…๐ž๐ฐ ๐’๐ž๐œ๐จ๐ง๐๐ฌ [๐Ÿš€](https://telegra.ph/file/67f41ae52a85dfc0551ae.mp4)") + m.edit("๐Ÿ”Ž ๐…๐ข๐ง๐๐ข๐ง๐  ๐€ ๐’๐จ๐ง๐  ๐ŸŽถ ๐๐ฅ๐ž๐š๐ฌ๐ž ๐–๐š๐ข๐ญ โณ๏ธ ๐…๐จ๐ซ ๐…๐ž๐ฐ ๐’๐ž๐œ๐จ๐ง๐๐ฌ [๐Ÿš€](https://te.legra.ph/file/05b6d9c633973a7d77881.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://youtu.be/3pN0W4KzzNY)\n๐Ÿ‘โ€๐Ÿ—จ ๐•๐ข๐ž๐ฐ๐ฌ : `{views}`\n\n๐Ÿ’Œ ๐๐ฒ : https://t.me/Developernikoneteam' secmul, dur, dur_arr = 1, 0, duration.split(':') for i in range(len(dur_arr)-1, -1, -1): dur += (int(dur_arr[i]) * secmul) @@ -102,7 +102,7 @@ def a(client, message): 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 @NIKONMUSICEFINDERbot โค๏ธ') print(e) try: os.remove(audio_file)