diff --git a/README.md b/README.md index 258d70b3..06465255 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Auto Filter Bot V2 +# đ“ŊęĢęĢ€ áĨ´đ˜ŗęĢ€ęĒ–đ“ŊęĒŽđ˜ŗ ęĒŽá ģ ęĒ–ęĒļęĒļ

@@ -71,7 +71,7 @@ Thanks to [InfotelGroup](https://telegram.dog/InFoTelGroup) and [Erich Daniken]( ## Installation ### Deploy to Heroku -[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/TroJanzHEX/Auto-Filter-Bot-V2) +[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/ANKIT3690/Auto-Filter-Bot-V2) ### Deploy in your vps ```sh diff --git a/app.json b/app.json index ef655654..eae10818 100644 --- a/app.json +++ b/app.json @@ -46,11 +46,11 @@ }, "VID_SEARCH": { "description": "Should bot search for video files in channels ( Give 'yes' or 'no' )", - "value": "no" + "value": "yes" }, "MUSIC_SEARCH": { "description": "Should bot search for music files in channels ( Give 'yes' or 'no' )", - "value": "no" + "value": "yes" } }, "buildpacks": [ @@ -64,4 +64,4 @@ "size": "free" } } -} \ No newline at end of file +} diff --git a/config.py b/config.py index 6d89bddf..5cf148a5 100644 --- a/config.py +++ b/config.py @@ -29,10 +29,10 @@ DOC_SEARCH = os.environ.get("DOC_SEARCH", "yes").lower() # Should bot search for video files in channels -VID_SEARCH = os.environ.get("VID_SEARCH", "no").lower() +VID_SEARCH = os.environ.get("VID_SEARCH", "yes").lower() # Should bot search for music files in channels -MUSIC_SEARCH = os.environ.get("MUSIC_SEARCH", "no").lower() +MUSIC_SEARCH = os.environ.get("MUSIC_SEARCH", "yes").lower() diff --git a/plugins/commands.py b/plugins/commands.py index 10bdf930..c13dc236 100644 --- a/plugins/commands.py +++ b/plugins/commands.py @@ -22,7 +22,7 @@ async def start(client, message): ], [ InlineKeyboardButton( - "â­•ī¸ JOIN OUR CHANNEL â­•ī¸", url="https://t.me/TroJanzHEX") + "â­•ī¸ JOIN OUR CHANNEL â­•ī¸", url="https://t.me/defenderofthemultiverse") ] ] ), @@ -45,7 +45,7 @@ async def help(client, message): ], [ InlineKeyboardButton( - "â­•ī¸ SUPPORT â­•ī¸", url="https://t.me/TroJanzSupport") + "â­•ī¸ SUPPORT â­•ī¸", url="https://t.me/thewarriorsreal") ] ] ), @@ -68,11 +68,11 @@ async def about(client, message): ], [ InlineKeyboardButton( - "SOURCE CODE", url="https://github.com/TroJanzHEX/Auto-Filter-Bot-V2") + "SOURCE CODE", url="https://t.me/ANKIT3690") ] ] ), reply_to_message_id=message.message_id ) except: - pass \ No newline at end of file + pass diff --git a/plugins/filters.py b/plugins/filters.py index 8806b57b..a36e4228 100644 --- a/plugins/filters.py +++ b/plugins/filters.py @@ -28,8 +28,8 @@ @Client.on_message(filters.group & filters.text) async def filter(client: Bot, message: Message): - if re.findall("((^\/|^,|^!|^\.|^[\U0001F600-\U000E007F]).*)", message.text): - return + #if re.findall("((^\/|^,|^!|^\.|^[\U0001F600-\U000E007F]).*)", message.text): + #return if 2 < len(message.text) < 50: btn = [] @@ -62,7 +62,7 @@ async def filter(client: Bot, message: Message): [InlineKeyboardButton(text="📃 Pages 1/1",callback_data="pages")] ) await message.reply_text( - f" Here is the result for {message.text}", + f" Here is the result for {message.text} ęĒŽá­™ęĒ€ęĢ€đ˜ŗ: @ANKIT3690 & @Saurav3BV6SA9LLElon7Musk", reply_markup=InlineKeyboardMarkup(buttons) ) return @@ -78,7 +78,7 @@ async def filter(client: Bot, message: Message): ) await message.reply_text( - f" Here is the result for {message.text}", + f" Here is the result for {message.text} ęĒŽá­™ęĒ€ęĢ€đ˜ŗ: @ANKIT3690 & @Saurav3BV6SA9LLElon7Musk", reply_markup=InlineKeyboardMarkup(buttons) ) @@ -93,11 +93,7 @@ async def cb_handler(client: Bot, query: CallbackQuery): if query.data.startswith("next"): await query.answer() ident, index, keyword = query.data.split("_") - try: - data = BUTTONS[keyword] - except KeyError: - await query.answer("You are using this for one of my old message, please send the request again.",show_alert=True) - return + data = BUTTONS[keyword] if int(index) == int(data["total"]) - 2: buttons = data['buttons'][int(index)+1].copy() @@ -132,11 +128,7 @@ async def cb_handler(client: Bot, query: CallbackQuery): elif query.data.startswith("back"): await query.answer() ident, index, keyword = query.data.split("_") - try: - data = BUTTONS[keyword] - except KeyError: - await query.answer("You are using this for one of my old message, please send the request again.",show_alert=True) - return + data = BUTTONS[keyword] if int(index) == 1: buttons = data['buttons'][int(index)-1].copy() @@ -177,7 +169,7 @@ async def cb_handler(client: Bot, query: CallbackQuery): keyboard = InlineKeyboardMarkup([ [InlineKeyboardButton("HELP", callback_data="help_data"), InlineKeyboardButton("ABOUT", callback_data="about_data")], - [InlineKeyboardButton("â­•ī¸ JOIN OUR CHANNEL â­•ī¸", url="https://t.me/TroJanzHEX")] + [InlineKeyboardButton("â­•ī¸ JOIN OUR CHANNEL â­•ī¸", url="https://t.me/defenderofthemultiverse")] ]) await query.message.edit_text( @@ -192,7 +184,7 @@ async def cb_handler(client: Bot, query: CallbackQuery): keyboard = InlineKeyboardMarkup([ [InlineKeyboardButton("BACK", callback_data="start_data"), InlineKeyboardButton("ABOUT", callback_data="about_data")], - [InlineKeyboardButton("â­•ī¸ SUPPORT â­•ī¸", url="https://t.me/TroJanzSupport")] + [InlineKeyboardButton("â­•ī¸ JOIN OUR GROUP â­•ī¸", url="https://t.me/thewarriorsreal")] ]) await query.message.edit_text( @@ -207,7 +199,7 @@ async def cb_handler(client: Bot, query: CallbackQuery): keyboard = InlineKeyboardMarkup([ [InlineKeyboardButton("BACK", callback_data="help_data"), InlineKeyboardButton("START", callback_data="start_data")], - [InlineKeyboardButton("SOURCE CODE", url="https://github.com/TroJanzHEX/Auto-Filter-Bot-V2")] + [InlineKeyboardButton("OWNER", url="https://t.me/ANKIT3690")] ]) await query.message.edit_text( @@ -226,7 +218,7 @@ async def cb_handler(client: Bot, query: CallbackQuery): await query.message.delete() else: - await query.answer("Thats not for you!!",show_alert=True) + await query.answer("OWNER: @ANKIT3690 &@Saurav3BV6SA9LLElon7Musk Thats not for you!! 😏 If you want it request it again",show_alert=True) def split_list(l, n): diff --git a/script.py b/script.py index 63671648..53f097e2 100644 --- a/script.py +++ b/script.py @@ -1,17 +1,17 @@ class script(object): - START_MSG = """ Hi {} + START_MSG = """ ęĢđ“˛ {} -You can call this as an Auto Filter Bot if you like :D +𝐀.𝐈 -This is Version 2 of Auto Filter Bot +𝐀𝐧 𝐞𝐧𝐡𝐚𝐧𝐜𝐞𝐝 𝐚𝐮𝐭𝐨 𝐟đĸđĨ𝐭𝐞đĢ 𝐛𝐨𝐭 đĻ𝐚𝐝𝐞 𝐛𝐲 @ANKIT3690 & @Saurav3BV6SA9LLElon7Musk -Bot gives button link to files in connected channels on query ! +𝐍𝐨 𝐧𝐞𝐞𝐝 𝐭𝐨 𝐠đĸđ¯đž 𝐜𝐨đĻđĻ𝐚𝐧𝐝đŦ -No need to add filters for your files or movies from now on! +𝐎𝐧đĨ𝐲 𝐖𝐨đĢ𝐤đŦ 𝐟𝐨đĢ đĻ𝐲 𝐜đĢ𝐞𝐚𝐭𝐨đĢ -For more click help""" +𝐅𝐨đĢ đĻ𝐨đĢ𝐞 𝐃𝐞𝐭𝐚đĸđĨđŦ 𝐂đĨđĸ𝐜𝐤 𝐛𝐞đĨ𝐨𝐰 How to use?""" HELP_MSG = """How to use the bot?? @@ -53,17 +53,17 @@ class script(object): Bot will automatically search for your files and give links to that! -Š @TroJanzHEX""" +Š @thewarriorsreal""" - ABOUT_MSG = """â­•ī¸My Name : Auto Filter Bot V2 + ABOUT_MSG = """â­•ī¸My Name : đ“ŊęĢęĢ€ áĨ´đ˜ŗęĢ€ęĒ–đ“ŊęĒŽđ˜ŗ ęĒŽá ģ ęĒ–ęĒļęĒļ -â­•ī¸Creater : @TroJanzHEX +â­•ī¸Creater : @ANKIT3690 & @Saurav3BV6SA9LLElon7Musk â­•ī¸Language : Python3 â­•ī¸Library : Pyrogram 1.0.7 -â­•ī¸Tutorial Video : Video Link +â­•ī¸đ“ŗęĒŽđ“˛ęĒ€ ęĒŽęĒŠđ˜ŗ á§đ˜ŗęĒŽęNJ΁ : đ“ŊęĢęĢ€ áĨ´đ˜ŗęĢ€ęĒ–đ“ŊęĒŽđ˜ŗ ęĒŽá ģ ęĒ–ęĒļęĒļ """